X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgui%2Fmenu.h;h=dba01bc4776a1d1644e0d10b4c2c30cc1215639e;hb=51bbae5942895f6efdd36a7ff3ae28ce897fb3c0;hp=d7a0e7288216ed4d99ed541aaf685183c5aa6f1d;hpb=c0093d25093395cb62fc2526ab42be65a9f015b8;p=supertux.git diff --git a/src/gui/menu.h b/src/gui/menu.h index d7a0e7288..dba01bc47 100644 --- a/src/gui/menu.h +++ b/src/gui/menu.h @@ -23,12 +23,12 @@ #include #include #include +#include #include "SDL.h" #include "video/surface.h" #include "video/font.h" -#include "special/timer.h" #include "mousecursor.h" bool confirm_dialog(Surface* background, std::string text); @@ -75,13 +75,12 @@ public: private: /// copy-construction not allowed - MenuItem(const MenuItem& other) { assert(false); } + MenuItem(const MenuItem& ) { assert(false); } /// assignment not allowed - void operator= (const MenuItem& other) { assert(false); } + void operator= (const MenuItem& ) { assert(false); } /// keyboard key or joystick button bool input_flickering; - Timer input_flickering_timer; }; class Menu @@ -131,7 +130,7 @@ private: /* input implementation variables */ int delete_character; char mn_input_char; - Timer repeat_timer; + Uint32 menu_repeat_ticks; public: static Font* default_font; @@ -143,7 +142,7 @@ public: std::vector items; Menu(); - ~Menu(); + virtual ~Menu(); void add_hl(); void add_label(const std::string& text); @@ -191,7 +190,7 @@ protected: private: void check_controlfield_change_event(const SDL_Event& event); void draw_item(DrawingContext& context, int index); - Timer effect; + Uint32 effect_ticks; int arrange_left; int active_item; };