Disable player list in offline (#327)
Prevent the playerlist from being rendered if the user is not online.
This commit is contained in:
parent
08cacf0b6e
commit
964347dbe4
@ -69,6 +69,7 @@ namespace big
|
|||||||
|
|
||||||
void view::players()
|
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;
|
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 });
|
ImGui::SetNextWindowSize({ 300.f, 0.f });
|
||||||
|
Reference in New Issue
Block a user