aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Menu/OptionMenu/MonitorDisplaySelector.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/OptionMenu/MonitorDisplaySelector.gd
parent9ee1940ac3d15aa4c0a87b84d1c4ab8958184f63 (diff)
Add types to GDScript for-loop variablesfor-loop-types
Diffstat (limited to 'game/src/Game/Menu/OptionMenu/MonitorDisplaySelector.gd')
-rw-r--r--game/src/Game/Menu/OptionMenu/MonitorDisplaySelector.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/src/Game/Menu/OptionMenu/MonitorDisplaySelector.gd b/game/src/Game/Menu/OptionMenu/MonitorDisplaySelector.gd
index a535f17..44f89f0 100644
--- a/game/src/Game/Menu/OptionMenu/MonitorDisplaySelector.gd
+++ b/game/src/Game/Menu/OptionMenu/MonitorDisplaySelector.gd
@@ -2,7 +2,7 @@ extends SettingRevertButton
func _setup_button() -> void:
clear()
- for screen_index in DisplayServer.get_screen_count():
+ for screen_index : int in DisplayServer.get_screen_count():
# Placeholder option text awaiting _update_monitor_options_text()
add_item(str(screen_index + 1))
_update_monitor_options_text()
@@ -14,7 +14,7 @@ func _notification(what : int) -> void:
_update_monitor_options_text()
func _update_monitor_options_text() -> void:
- for index in get_item_count():
+ for index : int in get_item_count():
set_item_text(index, tr("OPTIONS_VIDEO_MONITOR").format({ "index": Localisation.tr_number(index + 1) }))
func _on_option_selected(index : int, by_user : bool) -> void: