diff options
author | ClarkeCode <33846391+ClarkeCode@users.noreply.github.com> | 2023-03-04 19:46:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-04 19:46:42 +0100 |
commit | 028247a24866726b79c56cb2f266738a8a9abc70 (patch) | |
tree | 0807714d81b61002b4613dfa0c10aa7b1209eac6 /game/src/LocaleButton.gd | |
parent | 2f4842769b0856bc08a256907b64046fb55381ac (diff) | |
parent | 3e088a2642d2d05eed011b2dd1bdee566225719f (diff) |
Merge pull request #55 from Hop311/req-comments
Comments marking implemented requirements
Diffstat (limited to 'game/src/LocaleButton.gd')
-rw-r--r-- | game/src/LocaleButton.gd | 4 |
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]) |