aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Menu/OptionMenu/SettingNodes/SettingOptionButton.gd
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-07-21 01:26:31 +0200
committer Hop311 <hop3114@gmail.com>2023-07-21 01:26:31 +0200
commit62d001b0fa209f259440e160503dc5ffe5bcaa8f (patch)
treea0b28dffaba50d351cab1619f54516be23d2aa6f /game/src/Game/Menu/OptionMenu/SettingNodes/SettingOptionButton.gd
parentf3f240853b15a9f9b7cb561dc6626e7f342c5c74 (diff)
Tidying: missing req comments, submodules, hotkeys
Diffstat (limited to 'game/src/Game/Menu/OptionMenu/SettingNodes/SettingOptionButton.gd')
-rw-r--r--game/src/Game/Menu/OptionMenu/SettingNodes/SettingOptionButton.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/src/Game/Menu/OptionMenu/SettingNodes/SettingOptionButton.gd b/game/src/Game/Menu/OptionMenu/SettingNodes/SettingOptionButton.gd
index c5a805e..079dd4d 100644
--- a/game/src/Game/Menu/OptionMenu/SettingNodes/SettingOptionButton.gd
+++ b/game/src/Game/Menu/OptionMenu/SettingNodes/SettingOptionButton.gd
@@ -57,9 +57,9 @@ func _ready():
item_selected.connect(func(index : int): option_selected.emit(index, true))
_setup_button()
if not _valid_index(default_selected) or selected == -1:
- var msg := "Failed to generate %s %s options." % [setting_name, section_name]
+ var msg := "Failed to generate any valid %s %s options." % [setting_name, section_name]
push_error(msg)
- OS.alert(msg, "%s Options Error" % section_name)
+ OS.alert(msg, "Options Error: %s / %s" % [section_name, setting_name])
get_tree().quit()
func load_setting(file : ConfigFile) -> void: