diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-13 00:48:02 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-13 00:48:05 +0200 |
commit | 64232f0aeca605b1c10c670fc0cf26b407793256 (patch) | |
tree | 24a593c966896538d38b1b6c8e1c896c621a517f /src/guiMainMenu.h | |
parent | 591527d8787b6dfaafd2113bc001fe892b3eb0fb (diff) | |
download | minetest-64232f0aeca605b1c10c670fc0cf26b407793256.tar.gz minetest-64232f0aeca605b1c10c670fc0cf26b407793256.tar.bz2 minetest-64232f0aeca605b1c10c670fc0cf26b407793256.zip |
Add confirmation menu and make world deletion possible in GUI
Diffstat (limited to 'src/guiMainMenu.h')
-rw-r--r-- | src/guiMainMenu.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/guiMainMenu.h b/src/guiMainMenu.h index 08c585b88..688e393ad 100644 --- a/src/guiMainMenu.h +++ b/src/guiMainMenu.h @@ -44,11 +44,11 @@ struct MainMenuData bool enable_damage; int selected_world; // Actions - bool delete_world; + WorldSpec delete_world_spec; std::wstring create_world_name; std::string create_world_gameid; - std::list<std::wstring> worlds; + std::vector<WorldSpec> worlds; std::vector<SubgameSpec> games; MainMenuData(): @@ -58,9 +58,7 @@ struct MainMenuData // Server opts creative_mode(false), enable_damage(false), - selected_world(0), - // Actions - delete_world(false) + selected_world(0) {} }; @@ -84,6 +82,7 @@ public: { return m_accepted; } bool OnEvent(const SEvent& event); void createNewWorld(std::wstring name, std::string gameid); + void deleteWorld(WorldSpec spec); private: MainMenuData *m_data; |