mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Added list of active accounts and rooms to UI. Added room creation logic
This commit is contained in:
@@ -31,11 +31,11 @@ class CLabel;
|
||||
|
||||
|
||||
// TODO: Find new location for these enums
|
||||
enum ESelectionScreen : ui8 {
|
||||
enum class ESelectionScreen : ui8 {
|
||||
unknown = 0, newGame, loadGame, saveGame, scenarioInfo, campaignList
|
||||
};
|
||||
|
||||
enum ELoadMode : ui8
|
||||
enum class ELoadMode : ui8
|
||||
{
|
||||
NONE = 0, SINGLE, MULTI, CAMPAIGN, TUTORIAL
|
||||
};
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
void activate() override;
|
||||
void onScreenResize() override;
|
||||
void update() override;
|
||||
static void openLobby(ESelectionScreen screenType, bool host, const std::vector<std::string> * names, ELoadMode loadMode);
|
||||
static void openLobby(ESelectionScreen screenType, bool host, const std::vector<std::string> & names, ELoadMode loadMode);
|
||||
static void openCampaignLobby(const std::string & campaignFileName, std::string campaignSet = "");
|
||||
static void openCampaignLobby(std::shared_ptr<CampaignState> campaign);
|
||||
static void startTutorial();
|
||||
|
||||
Reference in New Issue
Block a user