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:
+12
@@ -11,6 +11,7 @@ const _ROMAN := "res://fonts/Cinzel.ttf"
|
||||
|
||||
static var _title: FontFile = null
|
||||
static var _body: FontFile = null
|
||||
static var _body_bold: FontVariation = null
|
||||
|
||||
|
||||
## Ornate display face — big banners, menu title, win/lose text.
|
||||
@@ -27,6 +28,17 @@ static func body() -> FontFile:
|
||||
return _body
|
||||
|
||||
|
||||
## Emboldened Roman face for small, high-legibility bits (keycaps, badges) where
|
||||
## Cinzel's thin regular strokes wash out. Faked via FontVariation since only the
|
||||
## regular weight ships, so no extra .ttf is needed.
|
||||
static func body_bold() -> FontVariation:
|
||||
if _body_bold == null:
|
||||
_body_bold = FontVariation.new()
|
||||
_body_bold.base_font = body()
|
||||
_body_bold.variation_embolden = 0.5
|
||||
return _body_bold
|
||||
|
||||
|
||||
static func _load(path: String) -> FontFile:
|
||||
if ResourceLoader.exists(path):
|
||||
var res := load(path)
|
||||
|
||||
Reference in New Issue
Block a user