Hide host button when connected
This commit is contained in:
parent
ac9b134ae0
commit
359e249ad3
1 changed files with 8 additions and 6 deletions
|
|
@ -559,12 +559,14 @@ void Toolbar::top_toolbar() {
|
|||
optionsMenuType = LOBBY_INFO_MENU;
|
||||
});
|
||||
}
|
||||
menu_popup_text_button("start hosting", "Host", [&] {
|
||||
serverLocalID = NetLibrary::get_random_server_local_id();
|
||||
serverToConnectTo = NetLibrary::get_global_id() + serverLocalID;
|
||||
optionsMenuOpen = true;
|
||||
optionsMenuType = HOST_MENU;
|
||||
});
|
||||
else {
|
||||
menu_popup_text_button("start hosting", "Host", [&] {
|
||||
serverLocalID = NetLibrary::get_random_server_local_id();
|
||||
serverToConnectTo = NetLibrary::get_global_id() + serverLocalID;
|
||||
optionsMenuOpen = true;
|
||||
optionsMenuType = HOST_MENU;
|
||||
});
|
||||
}
|
||||
menu_popup_text_button("canvas specific settings", "Canvas Settings", [&] {
|
||||
optionsMenuOpen = true;
|
||||
optionsMenuType = CANVAS_SETTINGS_MENU;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue