fix: syntax error class
This commit is contained in:
parent
16414da77e
commit
fb9c6d034c
File diff suppressed because it is too large
Load Diff
|
|
@ -1,5 +1,5 @@
|
|||
extends VBoxContainer
|
||||
class AccessibilitySettings
|
||||
class_name AccessibilitySettings
|
||||
|
||||
signal changed
|
||||
signal leave_stage
|
||||
|
|
@ -19,7 +19,7 @@ var is_active:bool = false:
|
|||
State.leave_stage(self)
|
||||
leave_stage.emit()
|
||||
is_active = active
|
||||
|
||||
|
||||
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!")
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ func _ready() -> void:
|
|||
else:
|
||||
%SaveButton.text = "menu_save"
|
||||
back_button.visible = false
|
||||
|
||||
|
||||
update_ui_from_state()
|
||||
|
||||
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
|
||||
subtitle_picker.selected = State.subtitles
|
||||
scale_slider.value = State.ui_scaling
|
||||
|
||||
|
||||
func _on_save_button_pressed() -> void:
|
||||
State.save_settings()
|
||||
is_active = false
|
||||
|
|
|
|||
Loading…
Reference in New Issue