feat(ui): 360dp redesign with patterns, room legend, and in-level settings

This commit is contained in:
Ratdoku Builder committed 2026-12-02 10:42:09 -06:00
1 parent 46b5764144
commit 089f5d6171
12 files changed
+115 -263

No files matched your search

+5 -5
View File
@@ -173,9 +173,9 @@ func _draw() -> void:
if value == RAT:
_draw_rat(Vector2i(r, c))
elif value == X:
_draw_x(_cell_rect(r, c), Color(0.29, 0.20, 0.14, 0.60))
_draw_x(_cell_rect(r, c), Color(0.29, 0.20, 0.14, 0.52))
elif auto_x[r][c]:
_draw_x(_cell_rect(r, c), Color(0.29, 0.20, 0.14, 0.24))
_draw_x(_cell_rect(r, c), Color(0.29, 0.20, 0.14, 0.20))
# Soft red ring around any rat that breaks a rule.
for cell in conflict_cells:
@@ -279,13 +279,13 @@ func _draw_motif(center: Vector2, size: float, motif: int, tint: Color, base: Co
func _draw_x(rect: Rect2, color: Color) -> void:
var inset := rect.size.x * 0.30
var inset := rect.size.x * 0.32
var a := rect.position + Vector2(inset, inset)
var b := rect.position + Vector2(rect.size.x - inset, rect.size.y - inset)
var c := rect.position + Vector2(rect.size.x - inset, inset)
var d := rect.position + Vector2(inset, rect.size.y - inset)
draw_line(a, b, color, max(2.0, rect.size.x * 0.045), true)
draw_line(c, d, color, max(2.0, rect.size.x * 0.045), true)
draw_line(a, b, color, max(1.4, rect.size.x * 0.035), true)
draw_line(c, d, color, max(1.4, rect.size.x * 0.035), true)
func _assign_region_rats() -> void: