X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fgui%2Fmenu.h;h=c9ef6ee7b218fc61e53bd3c9ff98f5a01ee55605;hb=f54737bb28bec638b9f436d023b9f21fec2caadd;hp=171b142bd23b268c5feefdacab48796a389ff4ea;hpb=2e973e2cf1dc2af448a0c27d067b00addb968538;p=supertux.git diff --git a/lib/gui/menu.h b/lib/gui/menu.h index 171b142bd..c9ef6ee7b 100644 --- a/lib/gui/menu.h +++ b/lib/gui/menu.h @@ -27,11 +27,10 @@ #include "SDL.h" -#include "../video/surface.h" -#include "../video/font.h" -#include "../special/timer.h" -#include "../special/base.h" -#include "../gui/mousecursor.h" +#include "video/surface.h" +#include "video/font.h" +#include "special/timer.h" +#include "mousecursor.h" namespace SuperTux { @@ -73,13 +72,17 @@ namespace SuperTux std::string text; std::string input; int *int_p; // used for setting keys (can be used for more stuff...) - std::pair, std::set::iterator> list; + + std::vector list; // list of values for a STRINGSELECT item + size_t selected; // currently selected item + Menu* target_menu; void change_text (const std::string& text); void change_input(const std::string& text); - static MenuItem* create(MenuItemKind kind, const std::string& text, int init_toggle, Menu* target_menu, int id, int* int_p); + static MenuItem* create(MenuItemKind kind, const std::string& text, + int init_toggle, Menu* target_menu, int id, int* int_p); std::string get_input_with_symbol(bool active_item); // returns the text with an input symbol private: