make options screen always save changes

This commit is contained in:
Haze Weathers 2024-02-27 19:21:21 -05:00
parent 262690f237
commit 470857ecfa
2 changed files with 8 additions and 4 deletions

View file

@ -25,6 +25,10 @@ func _ready() -> void:
$"%SelectTab".grab_focus()
func _input(event: InputEvent) -> void:
Options.save_options()
func _init_values() -> void:
# game
rumble.selection = Options.rumble

View file

@ -83,12 +83,11 @@ margin_bottom = 32.0
unique_name_in_owner = true
margin_top = 36.0
margin_right = 218.0
margin_bottom = 132.0
margin_bottom = 64.0
focus_mode = 2
tabs_visible = false
[node name="Game" type="VBoxContainer" parent="CenterContainer/PanelContainer/MarginContainer/VBoxContainer/Tabs"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
focus_next = NodePath("Rumble/SelectRumble")
@ -447,6 +446,7 @@ script = ExtResource( 3 )
options = [ "off", "on" ]
[node name="Input" type="VBoxContainer" parent="CenterContainer/PanelContainer/MarginContainer/VBoxContainer/Tabs"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
focus_next = NodePath("Left/Keyboard")
@ -663,9 +663,9 @@ action = "shoot"
[node name="DefaultControls" type="Button" parent="CenterContainer/PanelContainer/MarginContainer/VBoxContainer"]
margin_left = 81.0
margin_top = 136.0
margin_top = 68.0
margin_right = 137.0
margin_bottom = 146.0
margin_bottom = 78.0
size_flags_horizontal = 4
text = "defaults"