Disable player list in offline (#327)

Prevent the playerlist from being rendered if the user is not online.
This commit is contained in:
Vanquish 2022-07-07 19:30:02 -04:00 committed by GitHub
parent 08cacf0b6e
commit 964347dbe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,7 @@ namespace big
void view::players()
{
if (!*g_pointers->m_is_session_started) return;
float window_pos = 110.f + g_gui_service->nav_ctr * ImGui::CalcTextSize("W").y + g_gui_service->nav_ctr * ImGui::GetStyle().ItemSpacing.y + g_gui_service->nav_ctr * ImGui::GetStyle().ItemInnerSpacing.y + ImGui::GetStyle().WindowPadding.y;
ImGui::SetNextWindowSize({ 300.f, 0.f });