Randoloot/scripts/ui/compact_interface.gd
2026-10-19 22:33:24 +02:00

12 lines
319 B
GDScript

extends RefCounted
## Shared scale for in-game windows, cards and small HUD labels.
const WINDOW_ALPHA := 0.48
const CARD_ALPHA := 0.28
const HUD_ALPHA := 0.38
const BODY_SIZE := 11
const TITLE_SIZE := 13
const CORNER_RADIUS := 4
static func font_size(requested: int) -> int:
return clampi(requested, 10, TITLE_SIZE)