fix: syntax error class

This commit is contained in:
tiger tiger tiger 2025-12-13 12:43:25 +01:00
parent 16414da77e
commit fb9c6d034c
2 changed files with 1675 additions and 4 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
extends VBoxContainer extends VBoxContainer
class AccessibilitySettings class_name AccessibilitySettings
signal changed signal changed
signal leave_stage signal leave_stage
@ -19,7 +19,7 @@ var is_active:bool = false:
State.leave_stage(self) State.leave_stage(self)
leave_stage.emit() leave_stage.emit()
is_active = active is_active = active
if (is_active and not has_stage) and not get_tree().paused: if (is_active and not has_stage) and not get_tree().paused:
push_warning("%s has been set active but not been given the stage while the tree is unpaused!") push_warning("%s has been set active but not been given the stage while the tree is unpaused!")
@ -43,7 +43,7 @@ func _ready() -> void:
else: else:
%SaveButton.text = "menu_save" %SaveButton.text = "menu_save"
back_button.visible = false back_button.visible = false
update_ui_from_state() update_ui_from_state()
reduce_motion_check.pressed.connect(func(value): State.reduce_motion = value) reduce_motion_check.pressed.connect(func(value): State.reduce_motion = value)
@ -79,7 +79,7 @@ func update_ui_from_state():
font_picker.selected = State.font_style font_picker.selected = State.font_style
subtitle_picker.selected = State.subtitles subtitle_picker.selected = State.subtitles
scale_slider.value = State.ui_scaling scale_slider.value = State.ui_scaling
func _on_save_button_pressed() -> void: func _on_save_button_pressed() -> void:
State.save_settings() State.save_settings()
is_active = false is_active = false