diff options
Diffstat (limited to 'View.cpp')
-rw-r--r-- | View.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |