reset settings button + saving window mode + saving settings in main menu
This commit is contained in:
@@ -11,7 +11,9 @@ func _ready():
|
||||
%ControlsWindow.closed.connect(
|
||||
func ():
|
||||
GameInfo.save_settings()
|
||||
hide()
|
||||
)
|
||||
hide()
|
||||
|
||||
func open_controls():
|
||||
create_input_list()
|
||||
@@ -20,6 +22,7 @@ func open_controls():
|
||||
|
||||
func close_controls():
|
||||
%ControlsWindow.close_window()
|
||||
hide()
|
||||
|
||||
func create_input_list():
|
||||
InputMap.load_from_project_settings()
|
||||
@@ -34,4 +37,8 @@ func create_input_list():
|
||||
|
||||
|
||||
func instantiate_input_group() -> InputGroup:
|
||||
return INPUT_GROUP_SCENE.instantiate() as InputGroup
|
||||
return INPUT_GROUP_SCENE.instantiate() as InputGroup
|
||||
|
||||
func _on_reset_pressed() -> void:
|
||||
GameInfo.settings_data.reset_controls()
|
||||
create_input_list()
|
||||
Reference in New Issue
Block a user