From 6490d5cdb0e2c207fed7035ace5aa172aa5bf5bf Mon Sep 17 00:00:00 2001 From: Marty <85036874+MatusGuy@users.noreply.github.com> Date: Fri, 11 Aug 2023 12:59:55 +0100 Subject: [PATCH] Add options menu to editor menu --- src/supertux/menu/editor_menu.cpp | 6 ++++++ src/supertux/menu/editor_menu.hpp | 1 + 2 files changed, 7 insertions(+) diff --git a/src/supertux/menu/editor_menu.cpp b/src/supertux/menu/editor_menu.cpp index 55feeae4340..77838fe66f4 100644 --- a/src/supertux/menu/editor_menu.cpp +++ b/src/supertux/menu/editor_menu.cpp @@ -57,6 +57,8 @@ EditorMenu::EditorMenu() add_entry(MNID_TESTLEVEL, _("Test Worldmap")); } + add_entry(MNID_OPTIONS, _("Options")); + add_entry(MNID_SHARE, _("Share Level")); add_entry(MNID_PACK, _("Package Add-On")); @@ -158,6 +160,10 @@ EditorMenu::menu_action(MenuItem& item) } break; + case MNID_OPTIONS: + MenuManager::instance().push_menu(MenuStorage::OPTIONS_MENU); + break; + case MNID_SHARE: { Dialog::show_confirmation(_("We encourage you to share your levels in the SuperTux forum.\nTo find your level, click the\n\"Open Level directory\" menu item.\nDo you want to go to the forum now?"), [] { diff --git a/src/supertux/menu/editor_menu.hpp b/src/supertux/menu/editor_menu.hpp index ce77f10278c..593fd93b2a3 100644 --- a/src/supertux/menu/editor_menu.hpp +++ b/src/supertux/menu/editor_menu.hpp @@ -28,6 +28,7 @@ class EditorMenu final : public Menu MNID_SAVEASLEVEL, MNID_SAVECOPYLEVEL, MNID_TESTLEVEL, + MNID_OPTIONS, MNID_PACK, MNID_OPEN_DIR, MNID_SHARE,