aboutsummaryrefslogtreecommitdiff
path: root/game/src/LocaleButton.gd
diff options
context:
space:
mode:
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])