mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Clicking "Create New Room" button with active room now will switch to
game lobby UI
This commit is contained in:
		| @@ -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" | ||||
| 				} | ||||
| 			] | ||||
| 		}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user