diff options
author | Hop311 <Hop3114@gmail.com> | 2024-03-04 23:51:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-04 23:51:41 +0100 |
commit | eaae420cd2aca224d15f6276624c2fab882c978a (patch) | |
tree | bacc8f4094eff5514a94b3852e9cec9c28391669 /game/src/Game/Menu/SaveLoadMenu | |
parent | 521f7d3d156f42535fb7574fb36f2726e9d13885 (diff) | |
parent | e2077a0d93be8b2dd48f1ee680809420f1f690d7 (diff) |
Merge pull request #211 from OpenVicProject/for-loop-types
Add types to GDScript for-loop variables
Diffstat (limited to 'game/src/Game/Menu/SaveLoadMenu')
-rw-r--r-- | game/src/Game/Menu/SaveLoadMenu/SaveLoadMenu.gd | 6 |
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() |