|
@@ -5934,19 +5934,19 @@ EditorNode::EditorNode() {
|
|
|
p->add_shortcut(ED_SHORTCUT("editor/new_scene", TTR("New Scene")), FILE_NEW_SCENE);
|
|
|
p->add_shortcut(ED_SHORTCUT("editor/new_inherited_scene", TTR("New Inherited Scene...")), FILE_NEW_INHERITED_SCENE);
|
|
|
p->add_shortcut(ED_SHORTCUT("editor/open_scene", TTR("Open Scene..."), KEY_MASK_CMD + KEY_O), FILE_OPEN_SCENE);
|
|
|
+ p->add_shortcut(ED_SHORTCUT("editor/reopen_closed_scene", TTR("Reopen Closed Scene"), KEY_MASK_CMD + KEY_MASK_SHIFT + KEY_T), FILE_OPEN_PREV);
|
|
|
+ p->add_submenu_item(TTR("Open Recent"), "RecentScenes", FILE_OPEN_RECENT);
|
|
|
+
|
|
|
p->add_separator();
|
|
|
p->add_shortcut(ED_SHORTCUT("editor/save_scene", TTR("Save Scene"), KEY_MASK_CMD + KEY_S), FILE_SAVE_SCENE);
|
|
|
p->add_shortcut(ED_SHORTCUT("editor/save_scene_as", TTR("Save Scene As..."), KEY_MASK_SHIFT + KEY_MASK_CMD + KEY_S), FILE_SAVE_AS_SCENE);
|
|
|
p->add_shortcut(ED_SHORTCUT("editor/save_all_scenes", TTR("Save All Scenes"), KEY_MASK_ALT + KEY_MASK_SHIFT + KEY_MASK_CMD + KEY_S), FILE_SAVE_ALL_SCENES);
|
|
|
- p->add_separator();
|
|
|
- p->add_shortcut(ED_SHORTCUT("editor/close_scene", TTR("Close Scene"), KEY_MASK_SHIFT + KEY_MASK_CMD + KEY_W), FILE_CLOSE);
|
|
|
- p->add_separator();
|
|
|
- p->add_submenu_item(TTR("Open Recent"), "RecentScenes", FILE_OPEN_RECENT);
|
|
|
- p->add_shortcut(ED_SHORTCUT("editor/reopen_closed_scene", TTR("Reopen Closed Scene"), KEY_MASK_CMD + KEY_MASK_SHIFT + KEY_T), FILE_OPEN_PREV);
|
|
|
+
|
|
|
p->add_separator();
|
|
|
p->add_shortcut(ED_SHORTCUT("editor/quick_open", TTR("Quick Open..."), KEY_MASK_SHIFT + KEY_MASK_ALT + KEY_O), FILE_QUICK_OPEN);
|
|
|
p->add_shortcut(ED_SHORTCUT("editor/quick_open_scene", TTR("Quick Open Scene..."), KEY_MASK_SHIFT + KEY_MASK_CMD + KEY_O), FILE_QUICK_OPEN_SCENE);
|
|
|
p->add_shortcut(ED_SHORTCUT("editor/quick_open_script", TTR("Quick Open Script..."), KEY_MASK_ALT + KEY_MASK_CMD + KEY_O), FILE_QUICK_OPEN_SCRIPT);
|
|
|
+
|
|
|
p->add_separator();
|
|
|
PopupMenu *pm_export = memnew(PopupMenu);
|
|
|
pm_export->set_name("Export");
|
|
@@ -5959,8 +5959,10 @@ EditorNode::EditorNode() {
|
|
|
p->add_separator();
|
|
|
p->add_shortcut(ED_SHORTCUT("editor/undo", TTR("Undo"), KEY_MASK_CMD + KEY_Z), EDIT_UNDO, true);
|
|
|
p->add_shortcut(ED_SHORTCUT("editor/redo", TTR("Redo"), KEY_MASK_SHIFT + KEY_MASK_CMD + KEY_Z), EDIT_REDO, true);
|
|
|
+
|
|
|
p->add_separator();
|
|
|
p->add_shortcut(ED_SHORTCUT("editor/revert_scene", TTR("Revert Scene")), EDIT_REVERT);
|
|
|
+ p->add_shortcut(ED_SHORTCUT("editor/close_scene", TTR("Close Scene"), KEY_MASK_SHIFT + KEY_MASK_CMD + KEY_W), FILE_CLOSE);
|
|
|
|
|
|
recent_scenes = memnew(PopupMenu);
|
|
|
recent_scenes->set_name("RecentScenes");
|
|
@@ -5980,27 +5982,27 @@ EditorNode::EditorNode() {
|
|
|
|
|
|
p = project_menu->get_popup();
|
|
|
p->set_hide_on_window_lose_focus(true);
|
|
|
- p->add_shortcut(ED_SHORTCUT("editor/project_settings", TTR("Project Settings")), RUN_SETTINGS);
|
|
|
- p->add_separator();
|
|
|
+ p->add_shortcut(ED_SHORTCUT("editor/project_settings", TTR("Project Settings...")), RUN_SETTINGS);
|
|
|
p->connect("id_pressed", this, "_menu_option");
|
|
|
- p->add_shortcut(ED_SHORTCUT("editor/export", TTR("Export")), FILE_EXPORT_PROJECT);
|
|
|
+
|
|
|
+ p->add_separator();
|
|
|
+ p->add_shortcut(ED_SHORTCUT("editor/export", TTR("Export...")), FILE_EXPORT_PROJECT);
|
|
|
+ p->add_item(TTR("Install Android Build Template..."), FILE_INSTALL_ANDROID_SOURCE);
|
|
|
+ p->add_item(TTR("Open Project Data Folder"), RUN_PROJECT_DATA_FOLDER);
|
|
|
|
|
|
plugin_config_dialog = memnew(PluginConfigDialog);
|
|
|
plugin_config_dialog->connect("plugin_ready", this, "_on_plugin_ready");
|
|
|
gui_base->add_child(plugin_config_dialog);
|
|
|
|
|
|
+ p->add_separator();
|
|
|
tool_menu = memnew(PopupMenu);
|
|
|
tool_menu->set_name("Tools");
|
|
|
tool_menu->connect("index_pressed", this, "_tool_menu_option");
|
|
|
- p->add_separator();
|
|
|
p->add_child(tool_menu);
|
|
|
p->add_submenu_item(TTR("Tools"), "Tools");
|
|
|
- tool_menu->add_item(TTR("Orphan Resource Explorer"), TOOLS_ORPHAN_RESOURCES);
|
|
|
- tool_menu->add_item(TTR("Open Project Data Folder"), RUN_PROJECT_DATA_FOLDER);
|
|
|
- p->add_separator();
|
|
|
- p->add_item(TTR("Install Android Build Template"), FILE_INSTALL_ANDROID_SOURCE);
|
|
|
- p->add_separator();
|
|
|
+ tool_menu->add_item(TTR("Orphan Resource Explorer..."), TOOLS_ORPHAN_RESOURCES);
|
|
|
|
|
|
+ p->add_separator();
|
|
|
#ifdef OSX_ENABLED
|
|
|
p->add_shortcut(ED_SHORTCUT("editor/quit_to_project_list", TTR("Quit to Project List"), KEY_MASK_SHIFT + KEY_MASK_ALT + KEY_Q), RUN_PROJECT_MANAGER, true);
|
|
|
#else
|
|
@@ -6052,7 +6054,7 @@ EditorNode::EditorNode() {
|
|
|
|
|
|
p = settings_menu->get_popup();
|
|
|
p->set_hide_on_window_lose_focus(true);
|
|
|
- p->add_shortcut(ED_SHORTCUT("editor/editor_settings", TTR("Editor Settings")), SETTINGS_PREFERENCES);
|
|
|
+ p->add_shortcut(ED_SHORTCUT("editor/editor_settings", TTR("Editor Settings...")), SETTINGS_PREFERENCES);
|
|
|
p->add_separator();
|
|
|
|
|
|
editor_layouts = memnew(PopupMenu);
|
|
@@ -6087,11 +6089,8 @@ EditorNode::EditorNode() {
|
|
|
}
|
|
|
p->add_separator();
|
|
|
|
|
|
- p->add_item(TTR("Manage Editor Features"), SETTINGS_MANAGE_FEATURE_PROFILES);
|
|
|
-
|
|
|
- p->add_separator();
|
|
|
-
|
|
|
- p->add_item(TTR("Manage Export Templates"), SETTINGS_MANAGE_EXPORT_TEMPLATES);
|
|
|
+ p->add_item(TTR("Manage Editor Features..."), SETTINGS_MANAGE_FEATURE_PROFILES);
|
|
|
+ p->add_item(TTR("Manage Export Templates..."), SETTINGS_MANAGE_EXPORT_TEMPLATES);
|
|
|
|
|
|
// Help Menu
|
|
|
help_menu = memnew(MenuButton);
|