You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Disable menus and functionality that are not relevant on the Android Editor port
This commit is contained in:
@@ -6429,8 +6429,10 @@ EditorNode::EditorNode() {
|
||||
|
||||
p->add_separator();
|
||||
p->add_shortcut(ED_SHORTCUT("editor/export", TTR("Export...")), FILE_EXPORT_PROJECT);
|
||||
#ifndef ANDROID_ENABLED
|
||||
p->add_item(TTR("Install Android Build Template..."), FILE_INSTALL_ANDROID_SOURCE);
|
||||
p->add_item(TTR("Open User Data Folder"), RUN_USER_DATA_FOLDER);
|
||||
#endif
|
||||
|
||||
plugin_config_dialog = memnew(PluginConfigDialog);
|
||||
plugin_config_dialog->connect("plugin_ready", this, "_on_plugin_ready");
|
||||
@@ -6542,13 +6544,16 @@ EditorNode::EditorNode() {
|
||||
p->add_shortcut(ED_SHORTCUT("editor/take_screenshot", TTR("Take Screenshot"), KEY_MASK_CTRL | KEY_F12), EDITOR_SCREENSHOT);
|
||||
#endif
|
||||
p->set_item_tooltip(p->get_item_count() - 1, TTR("Screenshots are stored in the Editor Data/Settings Folder."));
|
||||
#ifndef ANDROID_ENABLED
|
||||
#ifdef OSX_ENABLED
|
||||
p->add_shortcut(ED_SHORTCUT("editor/fullscreen_mode", TTR("Toggle Fullscreen"), KEY_MASK_CMD | KEY_MASK_CTRL | KEY_F), SETTINGS_TOGGLE_FULLSCREEN);
|
||||
#else
|
||||
p->add_shortcut(ED_SHORTCUT("editor/fullscreen_mode", TTR("Toggle Fullscreen"), KEY_MASK_SHIFT | KEY_F11), SETTINGS_TOGGLE_FULLSCREEN);
|
||||
#endif
|
||||
#endif
|
||||
p->add_separator();
|
||||
|
||||
#ifndef ANDROID_ENABLED
|
||||
if (OS::get_singleton()->get_data_path() == OS::get_singleton()->get_config_path()) {
|
||||
// Configuration and data folders are located in the same place (Windows/macOS)
|
||||
p->add_item(TTR("Open Editor Data/Settings Folder"), SETTINGS_EDITOR_DATA_FOLDER);
|
||||
@@ -6558,9 +6563,12 @@ EditorNode::EditorNode() {
|
||||
p->add_item(TTR("Open Editor Settings Folder"), SETTINGS_EDITOR_CONFIG_FOLDER);
|
||||
}
|
||||
p->add_separator();
|
||||
#endif
|
||||
|
||||
p->add_item(TTR("Manage Editor Features..."), SETTINGS_MANAGE_FEATURE_PROFILES);
|
||||
#ifndef ANDROID_ENABLED
|
||||
p->add_item(TTR("Manage Export Templates..."), SETTINGS_MANAGE_EXPORT_TEMPLATES);
|
||||
#endif
|
||||
|
||||
// Help Menu
|
||||
help_menu = memnew(MenuButton);
|
||||
|
||||
Reference in New Issue
Block a user