Skip to content

Commit

Permalink
Add options menu to editor menu (#2578)
Browse files Browse the repository at this point in the history
Ability to open game options menu via editor menu.
  • Loading branch information
MatusGuy authored Aug 14, 2023
1 parent a03ed1c commit b5049bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/supertux/menu/editor_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -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?"), [] {
Expand Down
1 change: 1 addition & 0 deletions src/supertux/menu/editor_menu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class EditorMenu final : public Menu
MNID_SAVEASLEVEL,
MNID_SAVECOPYLEVEL,
MNID_TESTLEVEL,
MNID_OPTIONS,
MNID_PACK,
MNID_OPEN_DIR,
MNID_SHARE,
Expand Down

0 comments on commit b5049bf

Please sign in to comment.