class DrawingContext;
class MenuItem;
-bool confirm_dialog(Surface* background, std::string text);
-
class Menu
{
static Color default_color;
MenuItem* add_item(std::unique_ptr<MenuItem> menu_item);
private:
+ void process_action(MenuAction menuaction);
void check_controlfield_change_event(const SDL_Event& event);
void draw_item(DrawingContext& context, int index);
// position of the menu (ie. center of the menu, not top/left)
Vector pos;
- /** input event for the menu (up, down, left, right, etc.) */
- MenuAction menuaction;
-
/* input implementation variables */
int delete_character;
char mn_input_char;