From 65ef2075324c2c6b8560a98e86bf8f8b99b0d311 Mon Sep 17 00:00:00 2001 From: AdamTadeusz Date: Sun, 3 Nov 2024 21:42:08 +0000 Subject: [PATCH] move spectator gui position up, move other elements even higher so they stay above spectator gui --- mp/src/game/client/game_controls/SpectatorGUI.cpp | 5 ++++- mp/src/game/client/neo/ui/neo_hud_compass.cpp | 1 + mp/src/game/client/neo/ui/neo_hud_round_state.cpp | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mp/src/game/client/game_controls/SpectatorGUI.cpp b/mp/src/game/client/game_controls/SpectatorGUI.cpp index 6b4a04bc4..24c7bc5d9 100644 --- a/mp/src/game/client/game_controls/SpectatorGUI.cpp +++ b/mp/src/game/client/game_controls/SpectatorGUI.cpp @@ -514,7 +514,10 @@ void CSpectatorGUI::ApplySchemeSettings(IScheme *pScheme) SetBorder( NULL ); -#ifdef CSTRIKE_DLL +#ifdef CSTRIKE_DLL + SetZPos(80); // guarantee it shows above the scope +#endif +#ifdef NEO SetZPos(80); // guarantee it shows above the scope #endif } diff --git a/mp/src/game/client/neo/ui/neo_hud_compass.cpp b/mp/src/game/client/neo/ui/neo_hud_compass.cpp index f929b0012..e2c8c9d5f 100644 --- a/mp/src/game/client/neo/ui/neo_hud_compass.cpp +++ b/mp/src/game/client/neo/ui/neo_hud_compass.cpp @@ -226,6 +226,7 @@ void CNEOHud_Compass::ApplySchemeSettings(vgui::IScheme *pScheme) surface()->GetScreenSize(m_resX, m_resY); SetBounds(0, 0, m_resX, m_resY); + SetZPos(90); } void CNEOHud_Compass::DrawCompass() const diff --git a/mp/src/game/client/neo/ui/neo_hud_round_state.cpp b/mp/src/game/client/neo/ui/neo_hud_round_state.cpp index 70f6cf82e..730fba14e 100644 --- a/mp/src/game/client/neo/ui/neo_hud_round_state.cpp +++ b/mp/src/game/client/neo/ui/neo_hud_round_state.cpp @@ -204,6 +204,7 @@ void CNEOHud_RoundState::ApplySchemeSettings(vgui::IScheme* pScheme) m_mapAvatarsToImageList.RemoveAll(); SetBounds(0, Y_POS, res.w, res.h); + SetZPos(90); } extern ConVar neo_sv_readyup_lobby;