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/GameSession/Topbar.gd | |
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/GameSession/Topbar.gd')
-rw-r--r-- | game/src/Game/GameSession/Topbar.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/game/src/Game/GameSession/Topbar.gd b/game/src/Game/GameSession/Topbar.gd index 82dd4d3..b61af28 100644 --- a/game/src/Game/GameSession/Topbar.gd +++ b/game/src/Game/GameSession/Topbar.gd @@ -67,7 +67,7 @@ func _ready() -> void: NationManagement.Screen.DIPLOMACY : ^"./topbar/topbarbutton_diplomacy", NationManagement.Screen.MILITARY : ^"./topbar/topbarbutton_military" } - for screen in screen_nodepaths: + for screen : NationManagement.Screen in screen_nodepaths: var button : Button = get_button_from_nodepath(screen_nodepaths[screen]) if button: button.pressed.connect( @@ -127,5 +127,5 @@ func _on_decrease_speed_button_pressed() -> void: GameSingleton.decrease_speed() func _on_update_active_nation_management_screen(active_screen : NationManagement.Screen) -> void: - for screen in _nation_management_buttons: + for screen : NationManagement.Screen in _nation_management_buttons: _nation_management_button_textures[screen].set_icon_index(1 + int(screen == active_screen)) |