From ffd5d5e18c0607309ac6c68ed6fd67f2960d5baf Mon Sep 17 00:00:00 2001 From: nullsystem <15316579+nullsystem@users.noreply.github.com> Date: Sat, 26 Oct 2024 11:57:39 +0100 Subject: [PATCH] Restore compass fade code * It got removed in #520? --- mp/src/game/client/neo/ui/neo_hud_compass.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 077f220d48..f929b0012d 100644 --- a/mp/src/game/client/neo/ui/neo_hud_compass.cpp +++ b/mp/src/game/client/neo/ui/neo_hud_compass.cpp @@ -310,6 +310,18 @@ void CNEOHud_Compass::DrawCompass() const } } } + + static const Color FADE_END_COLOR(116, 116, 116, 255); + DrawNeoHudRoundedBoxFaded( + resXHalf - xBoxWidthHalf, m_resY - yBoxHeight - margin, + resXHalf, m_resY - margin, + FADE_END_COLOR, 255, 0, true, + true, false, true, false); + DrawNeoHudRoundedBoxFaded( + resXHalf, m_resY - yBoxHeight - margin, + resXHalf + xBoxWidthHalf, m_resY - margin, + FADE_END_COLOR, 0, 255, true, + false, true, false, true); } void CNEOHud_Compass::DrawDebugCompass() const