Fix spectator UI: use add_theme_font_size_override instead of property assignment

theme_override_font_sizes is not a settable property in GDScript 4.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-03-20 20:12:48 -04:00
co-authored by Claude Happy
parent 2a30408c8b
commit 502c672c91
@@ -265,7 +265,7 @@ func _setup_spectator_ui() -> void:
var lbl := Label.new()
lbl.text = "SPECTATING"
lbl.modulate = Color(1.0, 0.76, 0.2)
lbl.theme_override_font_sizes = { &"font_size": 18 }
lbl.add_theme_font_size_override("font_size", 18)
lbl.horizontal_alignment = HORIZONTAL_ALIGNMENT_CENTER
lbl.set_anchors_preset(Control.PRESET_TOP_WIDE)
lbl.position = Vector2(0, 8)