aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Menu/OptionMenu/VolumeGrid.gd
diff options
context:
space:
mode:
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
commitb6413251a866c76538869b84ed1c9b9852f7c507 (patch)
tree1b99c935438692bb2ebadeac412b990c82089b65 /game/src/Game/Menu/OptionMenu/VolumeGrid.gd
parent50b0b935b0bf0724f40b5140aca85d1830a8b1b3 (diff)
Apply type hints to menu scripts
Diffstat (limited to 'game/src/Game/Menu/OptionMenu/VolumeGrid.gd')
-rw-r--r--game/src/Game/Menu/OptionMenu/VolumeGrid.gd14
1 files changed, 7 insertions, 7 deletions
diff --git a/game/src/Game/Menu/OptionMenu/VolumeGrid.gd b/game/src/Game/Menu/OptionMenu/VolumeGrid.gd
index 46613b4..cce231f 100644
--- a/game/src/Game/Menu/OptionMenu/VolumeGrid.gd
+++ b/game/src/Game/Menu/OptionMenu/VolumeGrid.gd
@@ -39,7 +39,7 @@ func add_volume_row(bus_name : String, bus_index : int) -> HSlider:
# REQUIREMENTS
# * UI-22
-func _ready():
+func _ready() -> void:
for bus_index in AudioServer.bus_count:
add_volume_row(AudioServer.get_bus_name(bus_index), bus_index)
@@ -54,17 +54,17 @@ func _on_slider_value_changed(value : float, bus_index : int) -> void:
AudioServer.set_bus_volume_db(bus_index, get_volume_value_as_db(value))
-func _on_options_menu_load_settings(load_file : ConfigFile):
- for volume_slider in _slider_dictionary.values():
+func _on_options_menu_load_settings(load_file : ConfigFile) -> void:
+ for volume_slider : SettingHSlider in _slider_dictionary.values():
volume_slider.load_setting(load_file)
# REQUIREMENTS
# * UIFUN-23
-func _on_options_menu_save_settings(save_file : ConfigFile):
- for volume_slider in _slider_dictionary.values():
+func _on_options_menu_save_settings(save_file : ConfigFile) -> void:
+ for volume_slider : SettingHSlider in _slider_dictionary.values():
volume_slider.save_setting(save_file)
-func _on_options_menu_reset_settings():
- for volume_slider in _slider_dictionary.values():
+func _on_options_menu_reset_settings() -> void:
+ for volume_slider : SettingHSlider in _slider_dictionary.values():
volume_slider.reset_setting()