Skip to content

Commit

Permalink
Restore compass fade code (#768)
Browse files Browse the repository at this point in the history
* It got removed in #520?
  • Loading branch information
nullsystem authored Oct 27, 2024
1 parent b9f69ff commit d25a5b9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mp/src/game/client/neo/ui/neo_hud_compass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d25a5b9

Please sign in to comment.