Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more Remote Debug options to the web platform #91369

Merged
merged 1 commit into from
May 1, 2024

Conversation

adamscott
Copy link
Member

This PR adds (great) quality of life improvements for the web platform for the Remote Debug options.

Before After
Server Off Capture d’écran du 2024-04-30 13-42-28 Capture d’écran du 2024-04-30 13-33-23
Server On Capture d’écran du 2024-04-30 13-42-37 Capture d’écran du 2024-04-30 13-33-18

It may not seem important changes, but iterating on a web project with the old options were... irritating to say the least.

Before, you had to open up a window each time you did changes to the project. This is highly unpractical, since opened browser windows can have the developer tools opened. Opening a new window makes it awkward since it opens without that said window.

Now, you can re-export without even having to close the server. And let say that you have your browser window already opened up before you opened Godot. Now, you can launch the server without opening new windows.

Magical. Extraordinary!

This PR also cleans up EditorExportPlatformWeb, it could even serve as a template to make the EditorExportPlatform classes more readable. Instead of counting menu_options and incrementing the values for weird reasons, this uses a small state machine instead.

This PR makes it easier too to add new options to the menu, as actions were distinguished from the run() method.

Copy link
Collaborator

@Faless Faless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work 🏆 ! Thank you!

platform/web/export/export_plugin.h Outdated Show resolved Hide resolved
platform/web/export/export_plugin.h Outdated Show resolved Hide resolved
platform/web/export/export_plugin.h Outdated Show resolved Hide resolved
platform/web/export/export_plugin.cpp Outdated Show resolved Hide resolved
platform/web/export/export_plugin.cpp Outdated Show resolved Hide resolved
platform/web/export/export_plugin.cpp Outdated Show resolved Hide resolved
platform/web/export/export_plugin.cpp Outdated Show resolved Hide resolved
platform/web/export/export_plugin.cpp Outdated Show resolved Hide resolved
@adamscott adamscott force-pushed the web-remote-debug branch from 40c9460 to 360c6ed Compare May 1, 2024 17:53
@adamscott
Copy link
Member Author

Thanks @AThousandShips!

@adamscott adamscott force-pushed the web-remote-debug branch from 360c6ed to 51d2ebf Compare May 1, 2024 18:11
@akien-mga akien-mga merged commit 378b7c7 into godotengine:master May 1, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants