summaryrefslogtreecommitdiffhomepage
path: root/View.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'View.cpp')
-rw-r--r--View.cpp5
1 files changed, 5 insertions, 0 deletions
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);