X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmenu.h;h=4ac921dd8c87e2e7f2142a3a3f97f837614a8373;hb=157cef71aeb9ae25b7bb90f37dda11bc09329d11;hp=fa276f2f25b2893d486b6fcd62ea675979594bfd;hpb=d6ec9f10736b36f334bbd1dd7af5c7d4df0103c1;p=supertux.git diff --git a/src/menu.h b/src/menu.h index fa276f2f2..4ac921dd8 100644 --- a/src/menu.h +++ b/src/menu.h @@ -53,7 +53,6 @@ enum GameMenuIDs { enum WorldMapMenuIDs { MNID_RETURNWORLDMAP, - MNID_SAVEGAME, MNID_QUITWORLDMAP }; @@ -64,9 +63,9 @@ enum LevelEditorMainMenuIDs { }; enum LevelEditorSubsetSettingsIDs { - MNID_TITLE, - MNID_DESCRIPTION, - MNID_SAVE_CHANGES + MNID_SUBSETTITLE, + MNID_SUBSETDESCRIPTION, + MNID_SUBSETSAVECHANGES }; enum LevelEditorSubsetNewIDs { @@ -79,9 +78,12 @@ enum LevelEditorSettingsMenuIDs { MNID_AUTHOR, MNID_SONG, MNID_BGIMG, + MNID_PARTICLE, MNID_LENGTH, + MNID_HEIGHT, MNID_TIME, MNID_GRAVITY, + MNID_BGSPEED, MNID_TopRed, MNID_TopGreen, MNID_TopBlue, @@ -91,7 +93,7 @@ enum LevelEditorSettingsMenuIDs { MNID_APPLY }; -bool confirm_dialog(char *text); +bool confirm_dialog(std::string text); /* Kinds of menu items */ enum MenuItemKind { @@ -102,7 +104,8 @@ enum MenuItemKind { MN_DEACTIVE, MN_TEXTFIELD, MN_NUMFIELD, - MN_CONTROLFIELD, + MN_CONTROLFIELD_KB, + MN_CONTROLFIELD_JS, MN_STRINGSELECT, MN_LABEL, MN_HL, /* horizontal line */ @@ -176,6 +179,7 @@ private: /* input implementation variables */ int delete_character; char mn_input_char; + Timer joystick_timer; public: Timer effect; @@ -207,6 +211,7 @@ public: bool isToggled(int id); void Menu::get_controlfield_key_into_input(MenuItem *item); + void Menu::get_controlfield_js_into_input(MenuItem *item); void draw (); void draw_item(int index, int menu_width, int menu_height);