X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2FguiMainMenu.h;h=a594ccd418bac8c2b9a052b5740ab6ccc1245440;hb=c03c296dc7afe0e4ded65484221072ad6715e2be;hp=a21f3b32acb4801f24e51790859b8b8bd726fb11;hpb=6d0ea26c2d62c3774ff384cf1bfc2a3372b49a3b;p=minetest.git diff --git a/src/guiMainMenu.h b/src/guiMainMenu.h index a21f3b32a..a594ccd41 100644 --- a/src/guiMainMenu.h +++ b/src/guiMainMenu.h @@ -29,6 +29,11 @@ with this program; if not, write to the Free Software Foundation, Inc., class IGameCallback; +enum { + SERVERLIST_FAVORITES, + SERVERLIST_PUBLIC, +}; + struct MainMenuData { // These are in the native format of the gui elements @@ -52,6 +57,7 @@ struct MainMenuData int enable_shaders; bool preload_item_visuals; bool enable_particles; + bool liquid_finite; // Server options bool creative_mode; bool enable_damage; @@ -63,7 +69,7 @@ struct MainMenuData std::string create_world_gameid; bool only_refresh; - bool serverlist_show_available; // if false show local favorites only + int selected_serverlist; std::vector worlds; std::vector games; @@ -84,7 +90,7 @@ struct MainMenuData // Actions only_refresh(false), - serverlist_show_available(false) + selected_serverlist(SERVERLIST_FAVORITES) {} };