Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions app/src/main/java/com/messark/hawker/ui/components/GameBoard.kt
Original file line number Diff line number Diff line change
Expand Up @@ -292,25 +292,29 @@ fun GameBoard(
r = coord.r.toFloat(),
zOrder = 10,
draw = {
val radius = stall.range * wPx
val radiusX = (stall.range + 0.25f) * wPx
val radiusY = (stall.range * rowSpacingFactor + 0.25f) * hPx
val ovalSize = Size(radiusX * 2, radiusY * 2)
val ovalTopLeft = Offset(screenPos.x - radiusX, screenPos.y - radiusY)

// 1. Filled area
drawCircle(
drawOval(
color = Color.White.copy(alpha = 0.15f),
radius = radius,
center = screenPos
topLeft = ovalTopLeft,
size = ovalSize
)
// 2. Yellow border (wider stroke)
drawCircle(
drawOval(
color = Color.Yellow,
radius = radius,
center = screenPos,
topLeft = ovalTopLeft,
size = ovalSize,
style = Stroke(width = 4.dp.toPx())
)
// 3. Red outline (thinner stroke on top)
drawCircle(
drawOval(
color = Color.Red,
radius = radius,
center = screenPos,
topLeft = ovalTopLeft,
size = ovalSize,
style = Stroke(width = 2.dp.toPx())
)
}
Expand Down
Loading