diff options
Diffstat (limited to 'kurator/src/markers.cpp')
-rw-r--r-- | kurator/src/markers.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kurator/src/markers.cpp b/kurator/src/markers.cpp index 2b04129..f9e19b7 100644 --- a/kurator/src/markers.cpp +++ b/kurator/src/markers.cpp @@ -72,11 +72,12 @@ draw_markers(const sim::State& ctx) } const engine::Point direction {std::cos(transform.angle), std::sin(transform.angle)}; const auto edge = pos + direction.scale(marker.radius); - if (marker.hovered) - DrawCircle(pos.x, pos.y, marker.radius + 2, WHITE); + if (marker.hovered || marker.selected) + DrawCircle(pos.x, pos.y, marker.radius + 2, marker.selected ? YELLOW : WHITE); DrawCircle(pos.x, pos.y, marker.radius, marker.color); DrawLine(pos.x, pos.y, edge.x, edge.y, WHITE); - DrawText(marker.name.c_str(), pos.x+10, pos.y-5, 10.0f, marker.hovered ? WHITE : GRAY); + const auto colour = marker.selected ? YELLOW : marker.hovered ? WHITE : GRAY; + DrawText(marker.name.c_str(), pos.x+10, pos.y-5, 10.0f, colour); } } |