aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Menu/SaveLoadMenu/SaveLoadMenu.gd
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-03-03 17:39:08 +0100
committer hop311 <hop3114@gmail.com>2024-03-03 17:39:08 +0100
commite2077a0d93be8b2dd48f1ee680809420f1f690d7 (patch)
treebacc8f4094eff5514a94b3852e9cec9c28391669 /game/src/Game/Menu/SaveLoadMenu/SaveLoadMenu.gd
parent9ee1940ac3d15aa4c0a87b84d1c4ab8958184f63 (diff)
Add types to GDScript for-loop variablesfor-loop-types
Diffstat (limited to 'game/src/Game/Menu/SaveLoadMenu/SaveLoadMenu.gd')
-rw-r--r--game/src/Game/Menu/SaveLoadMenu/SaveLoadMenu.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/game/src/Game/Menu/SaveLoadMenu/SaveLoadMenu.gd b/game/src/Game/Menu/SaveLoadMenu/SaveLoadMenu.gd
index bff0bb5..66706b9 100644
--- a/game/src/Game/Menu/SaveLoadMenu/SaveLoadMenu.gd
+++ b/game/src/Game/Menu/SaveLoadMenu/SaveLoadMenu.gd
@@ -15,7 +15,7 @@ var is_save_menu : bool = true
var _id_to_tag : Array[StringName] = []
func filter_for_tag(tag : StringName) -> void:
- for child in _scroll_list.get_children():
+ for child : Control in _scroll_list.get_children():
if tag == &"":
child.show()
else:
@@ -44,7 +44,7 @@ func show_for_save() -> void:
func _build_save_list() -> void:
_tag_selection_tab.add_tab("SAVELOADMENU_TABSELECTIONTABBAR_ALL")
- for save_name in SaveManager._save_dictionary:
+ for save_name : StringName in SaveManager._save_dictionary:
var save : SaveResource = SaveManager._save_dictionary[save_name]
var save_node := _create_save_node(save)
_scroll_list.add_child(save_node)
@@ -60,7 +60,7 @@ func _create_save_node(resource : SaveResource) -> Control:
return save_node
func _queue_clear_scroll_list() -> void:
- for child in _scroll_list.get_children():
+ for child : Node in _scroll_list.get_children():
child.queue_free()
_tag_selection_tab.clear_tabs()
_id_to_tag.clear()