forked from team-sg/hero-mark-2
make options screen always save changes
This commit is contained in:
parent
262690f237
commit
470857ecfa
2 changed files with 8 additions and 4 deletions
|
@ -25,6 +25,10 @@ func _ready() -> void:
|
||||||
$"%SelectTab".grab_focus()
|
$"%SelectTab".grab_focus()
|
||||||
|
|
||||||
|
|
||||||
|
func _input(event: InputEvent) -> void:
|
||||||
|
Options.save_options()
|
||||||
|
|
||||||
|
|
||||||
func _init_values() -> void:
|
func _init_values() -> void:
|
||||||
# game
|
# game
|
||||||
rumble.selection = Options.rumble
|
rumble.selection = Options.rumble
|
||||||
|
|
|
@ -83,12 +83,11 @@ margin_bottom = 32.0
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
margin_top = 36.0
|
margin_top = 36.0
|
||||||
margin_right = 218.0
|
margin_right = 218.0
|
||||||
margin_bottom = 132.0
|
margin_bottom = 64.0
|
||||||
focus_mode = 2
|
focus_mode = 2
|
||||||
tabs_visible = false
|
tabs_visible = false
|
||||||
|
|
||||||
[node name="Game" type="VBoxContainer" parent="CenterContainer/PanelContainer/MarginContainer/VBoxContainer/Tabs"]
|
[node name="Game" type="VBoxContainer" parent="CenterContainer/PanelContainer/MarginContainer/VBoxContainer/Tabs"]
|
||||||
visible = false
|
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
focus_next = NodePath("Rumble/SelectRumble")
|
focus_next = NodePath("Rumble/SelectRumble")
|
||||||
|
@ -447,6 +446,7 @@ script = ExtResource( 3 )
|
||||||
options = [ "off", "on" ]
|
options = [ "off", "on" ]
|
||||||
|
|
||||||
[node name="Input" type="VBoxContainer" parent="CenterContainer/PanelContainer/MarginContainer/VBoxContainer/Tabs"]
|
[node name="Input" type="VBoxContainer" parent="CenterContainer/PanelContainer/MarginContainer/VBoxContainer/Tabs"]
|
||||||
|
visible = false
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
focus_next = NodePath("Left/Keyboard")
|
focus_next = NodePath("Left/Keyboard")
|
||||||
|
@ -663,9 +663,9 @@ action = "shoot"
|
||||||
|
|
||||||
[node name="DefaultControls" type="Button" parent="CenterContainer/PanelContainer/MarginContainer/VBoxContainer"]
|
[node name="DefaultControls" type="Button" parent="CenterContainer/PanelContainer/MarginContainer/VBoxContainer"]
|
||||||
margin_left = 81.0
|
margin_left = 81.0
|
||||||
margin_top = 136.0
|
margin_top = 68.0
|
||||||
margin_right = 137.0
|
margin_right = 137.0
|
||||||
margin_bottom = 146.0
|
margin_bottom = 78.0
|
||||||
size_flags_horizontal = 4
|
size_flags_horizontal = 4
|
||||||
text = "defaults"
|
text = "defaults"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue