X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2FguiMainMenu.h;h=4b73dcb9d87b5eb7ce6fd711de02af0bcbe03feb;hb=18350ad37fbfb7027f2ab82ead5be58c1435cdf0;hp=68f3ca0f3f07f378422f6488841e4200e32da500;hpb=eea3277b81625277b634d1f5409b46075ebe28ff;p=minetest.git diff --git a/src/guiMainMenu.h b/src/guiMainMenu.h index 68f3ca0f3..4b73dcb9d 100644 --- a/src/guiMainMenu.h +++ b/src/guiMainMenu.h @@ -30,6 +30,8 @@ class IGameCallback; struct MainMenuData { // These are in the native format of the gui elements + // Generic + int selected_tab; // Client options std::wstring address; std::wstring port; @@ -43,22 +45,28 @@ struct MainMenuData bool creative_mode; bool enable_damage; int selected_world; + bool simple_singleplayer_mode; // Actions - WorldSpec delete_world_spec; std::wstring create_world_name; std::string create_world_gameid; + bool only_refresh; std::vector worlds; std::vector games; MainMenuData(): + // Generic + selected_tab(0), // Client opts fancy_trees(false), smooth_lighting(false), // Server opts creative_mode(false), enable_damage(false), - selected_world(0) + selected_world(0), + simple_singleplayer_mode(false), + // Actions + only_refresh(false) {} }; @@ -82,7 +90,7 @@ class GUIMainMenu : public GUIModalMenu { return m_accepted; } bool OnEvent(const SEvent& event); void createNewWorld(std::wstring name, std::string gameid); - void deleteWorld(WorldSpec spec); + void deleteWorld(const std::vector &paths); int getTab(); private: @@ -96,6 +104,10 @@ class GUIMainMenu : public GUIModalMenu IMenuManager *menumgr; bool m_is_regenerating; + v2s32 m_topleft_client; + v2s32 m_size_client; + v2s32 m_topleft_server; + v2s32 m_size_server; }; #endif