aboutsummaryrefslogtreecommitdiff
path: root/game/src/LocaleButton.gd
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-03-04 19:06:05 +0100
committer Hop311 <hop3114@gmail.com>2023-03-04 19:06:05 +0100
commit3e088a2642d2d05eed011b2dd1bdee566225719f (patch)
tree4b80e3cbc20413f9b1ea57fed5a6f7a847328a29 /game/src/LocaleButton.gd
parent3a46095b678d75292090802280ce9dbd3f2d24dc (diff)
Comments marking implemeneted requirements
Diffstat (limited to 'game/src/LocaleButton.gd')
-rw-r--r--game/src/LocaleButton.gd4
1 files changed, 4 insertions, 0 deletions
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])