#include "gui/menu_item.hpp"
+#include <stdio.h>
+
+#include "supertux/menu/menu_storage.hpp"
#include "supertux/resources.hpp"
#include "supertux/timer.hpp"
#include "video/font.hpp"
-#include <stdio.h>
-static const float FLICK_CURSOR_TIME = 0.5f;
+static const float FLICK_CURSOR_TIME = 0.5f;
MenuItem::MenuItem(MenuItemKind _kind, int _id) :
kind(_kind),
id(_id),
- toggled(),
+ toggled(false),
text(),
input(),
help(),
list(),
- selected(),
- target_menu(),
+ selected(false),
+ target_menu(MenuStorage::NO_MENU),
input_flickering()
{
- toggled = false;
- selected = false;
- target_menu = 0;
}
void