fix: Made breakup conditional (being host) (#1436)

Closes #1448
This commit is contained in:
DayibBaba
2023-06-17 15:49:48 +02:00
committed by GitHub
parent 853061a7b7
commit dca82a4060
8 changed files with 79 additions and 13 deletions

View File

@ -126,9 +126,14 @@ namespace big
}
components::sub_title("Lobby Lock");
ImGui::BeginDisabled(!g_player_service->get_self()->is_host());
ImGui::Checkbox("Lock", &g.session.lock_session);
if (ImGui::IsItemHovered())
ImGui::SetTooltip("Blocks all players from joining. May not work on some modders.");
ImGui::EndDisabled();
components::sub_title("DECLOAK"_T);
components::script_patch_checkbox("REVEAL_OTR_PLAYERS"_T, &g.session.decloak_players);