/* * GlobalLobbyServerSetup.h, part of VCMI engine * * Authors: listed in file AUTHORS in main folder * * License: GNU General Public License v2.0 or later * Full text of license available in license.txt file, in main folder * */ #pragma once #include "../windows/CWindowObject.h" class CLabel; class CTextBox; class FilledTexturePlayerColored; class CButton; class CToggleGroup; class GlobalLobbyServerSetup : public CWindowObject { std::shared_ptr filledBackground; std::shared_ptr labelTitle; std::shared_ptr labelPlayerLimit; std::shared_ptr labelRoomType; std::shared_ptr labelGameMode; std::shared_ptr togglePlayerLimit; // 2-8 std::shared_ptr toggleRoomType; // public or private std::shared_ptr toggleGameMode; // new game or load game std::shared_ptr labelDescription; std::shared_ptr labelStatus; std::shared_ptr buttonCreate; std::shared_ptr buttonClose; void updateDescription(); void onPlayerLimitChanged(int value); void onRoomTypeChanged(int value); void onGameModeChanged(int value); void onCreate(); void onClose(); public: GlobalLobbyServerSetup(); };