diff options
author | Aki <please@ignore.pl> | 2022-06-09 20:08:22 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-06-09 20:08:22 +0200 |
commit | e0de78eecfbc8898b028f191326e87f647d6aa5b (patch) | |
tree | 1041ba51f7a5638d5bc84bcdf5c48cd8f59443d1 /View.cpp | |
parent | b08f360cf92e76fabf5b762bf79032f60f751e30 (diff) | |
download | derelict-e0de78eecfbc8898b028f191326e87f647d6aa5b.zip derelict-e0de78eecfbc8898b028f191326e87f647d6aa5b.tar.gz derelict-e0de78eecfbc8898b028f191326e87f647d6aa5b.tar.bz2 |
Added group icons to wreck labels
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); |