summaryrefslogtreecommitdiff
path: root/src/guiMainMenu.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-11 20:45:14 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-11 20:45:14 +0200
commitd1d83d7e7f5e2e7cbef5272eda9c580129e301a3 (patch)
tree2fc04eeae8cac55e6d17cccceecb9450fddd4f12 /src/guiMainMenu.h
parentbcaab74f1f4cb8c9fcd65cc8cb8bd290834bf72f (diff)
downloadminetest-d1d83d7e7f5e2e7cbef5272eda9c580129e301a3.tar.gz
minetest-d1d83d7e7f5e2e7cbef5272eda9c580129e301a3.tar.bz2
minetest-d1d83d7e7f5e2e7cbef5272eda9c580129e301a3.zip
World selection box in main menu (and random fixing)
Diffstat (limited to 'src/guiMainMenu.h')
-rw-r--r--src/guiMainMenu.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/guiMainMenu.h b/src/guiMainMenu.h
index ba2fc6be5..8ef286245 100644
--- a/src/guiMainMenu.h
+++ b/src/guiMainMenu.h
@@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <string>
// For IGameCallback
#include "guiPauseMenu.h"
+#include <list>
enum
{
@@ -41,7 +42,8 @@ enum
GUI_ID_CREATIVE_CB,
GUI_ID_JOIN_GAME_BUTTON,
GUI_ID_CHANGE_KEYS_BUTTON,
- GUI_ID_DELETE_MAP_BUTTON
+ GUI_ID_DELETE_MAP_BUTTON,
+ GUI_ID_WORLD_LISTBOX,
};
struct MainMenuData
@@ -53,8 +55,9 @@ struct MainMenuData
// Server opts
creative_mode(false),
enable_damage(false),
+ selected_world(0),
// Actions
- delete_map(false)
+ delete_world(false)
{}
// These are in the native format of the gui elements
@@ -71,8 +74,11 @@ struct MainMenuData
// Server options
bool creative_mode;
bool enable_damage;
+ int selected_world;
// If map deletion is requested, this is set to true
- bool delete_map;
+ bool delete_world;
+
+ std::list<std::wstring> worlds;
};
class GUIMainMenu : public GUIModalMenu