diff --git a/game/systems/s_input.c b/game/systems/s_input.c index 3c717b7..5783726 100644 --- a/game/systems/s_input.c +++ b/game/systems/s_input.c @@ -305,11 +305,24 @@ void drawPlayerInputUIGround() { Position *pos = ecs_field(&it, Position, 1); Size *size = ecs_field(&it, Size, 2); for (i32 i = 0; i < it.count; i++) { + ecs_entity_t entity = it.entities[i]; f32 radius = size[i].x; if (size[i].y > radius) radius = size[i].y; radius *= 0.5f; - DrawCircleLines(pos[i].x, pos[i].y, radius, GREEN); + const f32 lineThickness = 1.0f; + if (ecs_has(ECS, entity, Building)) { + const f32 padding = 2.0f; + Rectangle bounds = { + pos[i].x - size[i].x * 0.5f - padding, + pos[i].y - size[i].y * 0.5f - padding, + size[i].x + padding * 2, + size[i].y + padding * 2, + }; + DrawRectangleLinesEx(bounds, lineThickness, GREEN); + } else { + DrawRing(pos[i], radius, radius + lineThickness, 0, 360, 12, GREEN); + } } }