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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user