Release 0.2.0: device-aware controls, spear, settings, shaders

Show touch controls only on touch platforms and keyboard hints only on
desktop, via a shared Controls.use_touch_ui() gate (is_touchscreen_available
is unreliable with emulate_touch_from_mouse). Bumps version to 0.2.0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-09 19:39:37 +03:00
parent ce6f3d7075
commit 56593c58cf
35 changed files with 1885 additions and 242 deletions
+4 -4
View File
@@ -21,15 +21,15 @@ const SHADOW := Color(0.00, 0.00, 0.00, 0.55)
## HUD tiles or CREAM for a hot/hover state; a transparent accent draws a frameless
## plate (still shadowed).
static func plaque(bg: Color, accent: Color = BORDER,
corner: int = 3, h_margin: float = 16.0, v_margin: float = 8.0,
corner: int = 1, h_margin: float = 16.0, v_margin: float = 8.0,
shadow: bool = true) -> StyleBoxFlat:
var s := StyleBoxFlat.new()
s.bg_color = bg
s.set_corner_radius_all(corner)
s.corner_detail = 6
s.corner_detail = 1
if accent.a > 0.0:
s.set_border_width_all(2)
s.border_width_bottom = 5
s.set_border_width_all(1)
s.border_width_bottom = 2
s.border_color = accent
s.content_margin_left = h_margin
s.content_margin_right = h_margin