diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-12-23 05:01:51 +0100 |
---|---|---|
committer | George L. Albany <Megacake1234@gmail.com> | 2023-12-24 04:52:36 +0100 |
commit | b6413251a866c76538869b84ed1c9b9852f7c507 (patch) | |
tree | 1b99c935438692bb2ebadeac412b990c82089b65 /game/src/Game/Menu/SaveLoadMenu | |
parent | 50b0b935b0bf0724f40b5140aca85d1830a8b1b3 (diff) |
Apply type hints to menu scripts
Diffstat (limited to 'game/src/Game/Menu/SaveLoadMenu')
-rw-r--r-- | game/src/Game/Menu/SaveLoadMenu/SavePanelButton.gd | 2 | ||||
-rw-r--r-- | game/src/Game/Menu/SaveLoadMenu/SaveResource.gd | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/game/src/Game/Menu/SaveLoadMenu/SavePanelButton.gd b/game/src/Game/Menu/SaveLoadMenu/SavePanelButton.gd index 5fe4917..6dc43c9 100644 --- a/game/src/Game/Menu/SaveLoadMenu/SavePanelButton.gd +++ b/game/src/Game/Menu/SaveLoadMenu/SavePanelButton.gd @@ -26,7 +26,7 @@ func set_text(value : StringName) -> void: if resource != null: resource.save_name = value -func _ready(): +func _ready() -> void: _resource_changed() func _is_start_date() -> bool: diff --git a/game/src/Game/Menu/SaveLoadMenu/SaveResource.gd b/game/src/Game/Menu/SaveLoadMenu/SaveResource.gd index 5e7faa6..63cfd7f 100644 --- a/game/src/Game/Menu/SaveLoadMenu/SaveResource.gd +++ b/game/src/Game/Menu/SaveLoadMenu/SaveResource.gd @@ -27,7 +27,7 @@ var file_path : String: emit_changed() var file : ConfigFile = ConfigFile.new() -func set_file_path(name : StringName, path : String): +func set_file_path(name : StringName, path : String) -> void: file_path = path save_name = name |