From 3e088a2642d2d05eed011b2dd1bdee566225719f Mon Sep 17 00:00:00 2001 From: Hop311 Date: Sat, 4 Mar 2023 18:06:05 +0000 Subject: Comments marking implemeneted requirements --- game/src/LocaleButton.gd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'game/src/LocaleButton.gd') diff --git a/game/src/LocaleButton.gd b/game/src/LocaleButton.gd index 9f499b8..a8220de 100644 --- a/game/src/LocaleButton.gd +++ b/game/src/LocaleButton.gd @@ -39,6 +39,8 @@ func load_setting(file : ConfigFile) -> void: push_error("Setting value '%s' invalid for setting [%s] %s" % [load_value, section_name, setting_name]) reset_setting() +# REQUIREMENTS: +# * UIFUN-74 func save_setting(file : ConfigFile) -> void: if file == null: return file.set_value(section_name, setting_name, _locales_list[selected]) @@ -46,6 +48,8 @@ func save_setting(file : ConfigFile) -> void: func reset_setting() -> void: selected = _locales_list.find(TranslationServer.get_locale()) +# REQUIREMENTS: +# * SS-58 func _on_item_selected(index : int) -> void: if _valid_index(index): TranslationServer.set_locale(_locales_list[index]) -- cgit v1.2.3-56-ga3b1