From e0de78eecfbc8898b028f191326e87f647d6aa5b Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 9 Jun 2022 20:08:22 +0200 Subject: Added group icons to wreck labels --- View.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'View.cpp') diff --git a/View.cpp b/View.cpp index 6f09ba5..542c031 100644 --- a/View.cpp +++ b/View.cpp @@ -86,13 +86,18 @@ View::draw() const for (const auto& point : m_labels) { Color line = point.hover ? ORANGE : LINE; Color icon = point.hover ? ORANGE : WHITE; + Color white = WHITE; if (!point.hover && point.wreck.get().time > m_timeline.current()) { line.a = 20; icon.a = 20; + white.a = 20; } if (point.length > 8) DrawLine(point.base.x, point.base.y, point.pos.x, point.pos.y, line); DrawTexture(point.texture, point.pos.x - 8, point.pos.y - 8, icon); + int team = point.wreck.get().team; + if (team != -1) + DrawTexture(app.icons.team_icon(team), point.pos.x + 3, point.pos.y + 3, white); } DrawFPS(5, 5); DrawText(TextFormat("%d", m_labels.size()), 5, 25, 20, DARKGRAY); -- cgit v1.1