aboutsummaryrefslogtreecommitdiff
path: root/game/src/OptionMenu/GuiScaleSelector.gd
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-05-21 01:21:45 +0200
committer GitHub <noreply@github.com>2023-05-21 01:21:45 +0200
commit54afdfccd4ded46fd61ff11c45bbeb05489b73e7 (patch)
tree54d7092a3f68740e92008e073334d6beb3154a8b /game/src/OptionMenu/GuiScaleSelector.gd
parente80966ad4d92599bd5f899dfa708d2e6d131b7e7 (diff)
parent3bf63f1615868cb4a8625356a49eff4aed36879c (diff)
Merge pull request #120 from Spartan322/overhaul/resolution-revert
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)