aboutsummaryrefslogtreecommitdiff
path: root/game/src/OptionMenu/GuiScaleSelector.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game/src/OptionMenu/GuiScaleSelector.gd')
-rw-r--r--game/src/OptionMenu/GuiScaleSelector.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/src/OptionMenu/GuiScaleSelector.gd b/game/src/OptionMenu/GuiScaleSelector.gd
index 6593a07..4dd86e1 100644
--- a/game/src/OptionMenu/GuiScaleSelector.gd
+++ b/game/src/OptionMenu/GuiScaleSelector.gd
@@ -56,9 +56,9 @@ func _set_value_from_file(load_value):
push_error("Setting value '%s' invalid for setting [%s] %s" % [load_value, section_name, setting_name])
selected = default_selected
-func _on_item_selected(index:int):
+func _on_option_selected(index : int, by_user : bool):
if _valid_index(index):
GuiScale.set_guiscale(get_item_metadata(index))
else:
push_error("Invalid GuiScaleSelector index: %d" % index)
- reset_setting()
+ reset_setting(not by_user)