feat(ui): theme HUD with Orbitron typography

This commit is contained in:
Josh Creek
2026-08-07 22:48:56 +01:00
parent 8bd65290fc
commit 0a7eb0b742
10 changed files with 173 additions and 5 deletions
+8
View File
@@ -23,3 +23,11 @@ static func angle_delta_deg(from: float, to: float) -> float:
func _smoothing_weight(delta: float) -> float:
return 1.0 - exp(-SMOOTHING * delta) # frame-rate independent
# Procedural draw calls do not automatically consume a Control's theme font;
# resolve it explicitly so every instrument uses the same packaged typeface
# as ordinary Labels instead of ThemeDB's debug-looking fallback.
func hud_font() -> Font:
var font := get_theme_default_font()
return font if font else ThemeDB.fallback_font