1
0
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:
Ivan Savenko 2024-03-11 22:06:43 +02:00
parent 16605a7aaa
commit dcf35e4877
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -190,7 +190,7 @@
"font": "medium",
"alignment": "center",
"color": "yellow",
"text": "Create Room"
"text": "Create New Room"
}
]
},