-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
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
Hide unsupported features in the web editor #49540
base: master
Are you sure you want to change the base?
Hide unsupported features in the web editor #49540
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see any removals that were obviously bad. We can always remove more later.
b5041b8
to
4c959ad
Compare
That makes sense, though I'm not fond of having so many hardcoded defines for a given platform in editor code. WDYT @Faless? |
I feel the same... Can we monkey patch the options via the editor tool javascript plugin? Maybe it's worse... In any case, we don't need the |
I needed those to avoid a crash or mismatched option indexes when the JavaScript platform was active. |
4c959ad
to
b435249
Compare
88ef5a5
to
1378f90
Compare
@akien-mga Was there a reason this was limboed? |
See the above discussion, neither @Faless nor myself really like the way this is done. |
In the end we went for the same hacky approach for the Android editor to fill the editor code with Should be rebased / retested so we can review further (though the Web editor still doesn't start right now so you might want to wait for that). Moving to 4.x milestone as not urgent, but if it's ready to merge during the 4.0 beta phase it should be good to go. |
The game camera override button is disabled with a tooltip explaining why, but other menu options are hidden entirely to prevent them from being listed in the list of available editor shortcuts. The Scan button is hidden as it serves no purpose in the web project manager. There is no way to import multiple project folders at once to the virtual HTML5 filesystem.
1378f90
to
9b2c05d
Compare
@@ -6831,20 +6843,28 @@ EditorNode::EditorNode() { | |||
settings_menu->add_submenu_item(TTR("Editor Layout"), "Layouts"); | |||
settings_menu->add_separator(); | |||
|
|||
#if !defined(WEB_ENABLED) && !defined(ANDROID_ENABLED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wasn't excluded on Android. Did you check if it works?
#ifdef WEB_ENABLED | ||
// Scan function is not relevant on the web editor, as there is no way | ||
// to import multiple projects at once into the virtual HTML5 filesystem. | ||
scan_btn->hide(); | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test importing a zip with multiple projects in subfolders?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just tried this in 4.0.beta2. It only imports the first project that is found in the ZIP. It'd be nice to implement support for importing multiple projects in a single ZIP (either at top-level or within a subfolder).
The game camera override button is disabled with a tooltip explaining why, but other menu options are hidden entirely to prevent them from being listed in the list of available editor shortcuts.
The Scan button is hidden as it serves no purpose in the web project manager. There is no way to import multiple project folders at once to the virtual HTML5 filesystem.
This pull request can be remade on the
3.x
branch once we agree on its design.