mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
Clicking "Create New Room" button with active room now will switch to
game lobby UI
This commit is contained in:
parent
16605a7aaa
commit
dcf35e4877
@ -31,7 +31,7 @@ GlobalLobbyWidget::GlobalLobbyWidget(GlobalLobbyWindow * window)
|
||||
{
|
||||
addCallback("closeWindow", [](int) { GH.windows().popWindows(1); });
|
||||
addCallback("sendMessage", [this](int) { this->window->doSendChatMessage(); });
|
||||
addCallback("createGameRoom", [this](int) { this->window->doCreateGameRoom(); });
|
||||
addCallback("createGameRoom", [this](int) { if (!CSH->inGame()) this->window->doCreateGameRoom(); else GH.windows().popWindows(1); });
|
||||
|
||||
REGISTER_BUILDER("accountList", &GlobalLobbyWidget::buildAccountList);
|
||||
REGISTER_BUILDER("roomList", &GlobalLobbyWidget::buildRoomList);
|
||||
|
@ -190,7 +190,7 @@
|
||||
"font": "medium",
|
||||
"alignment": "center",
|
||||
"color": "yellow",
|
||||
"text": "Create Room"
|
||||
"text": "Create New Room"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user