Allow Friends Into Locked Lobby (#1747)

This commit is contained in:
Rxann
2023-07-18 04:42:14 -04:00
committed by GitHub
parent 1d78388519
commit 95056d5af3
3 changed files with 37 additions and 20 deletions

View File

@ -116,10 +116,17 @@ namespace big
ImGui::BeginDisabled(!g_player_service->get_self()->is_host());
ImGui::Checkbox("Lobby Lock", &g.session.lock_session);
if (ImGui::Checkbox("Lobby Lock", &g.session.lock_session))
{
ImGui::Checkbox("Allow Friends Into Locked Lobby", &g.session.allow_friends_into_locked_session);
if (ImGui::IsItemHovered())
ImGui::SetTooltip("Allows Friends to Join Lobby While Locked");
}
if (ImGui::IsItemHovered())
ImGui::SetTooltip("Blocks all players from joining. May not work on some modders.");
ImGui::EndDisabled();
components::script_patch_checkbox("REVEAL_OTR_PLAYERS"_T, &g.session.decloak_players, "Reveals players that are off the radar");