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 26457f0d35
commit 3cdb9df2da

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 });