mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 21:14:42 -04:00
Cleanup preference dialog visuals a little bit. Add missing hints.
This commit is contained in:
parent
10280f25f9
commit
bfbe76ab79
4 changed files with 297 additions and 218 deletions
|
@ -87,8 +87,8 @@ func _ready() -> void:
|
|||
|
||||
# Set the language option menu's default selected option to the loaded locale
|
||||
var locale_index: int = Global.loaded_locales.find(saved_locale)
|
||||
$PreferencesDialog.languages.get_child(1).pressed = false
|
||||
$PreferencesDialog.languages.get_child(locale_index + 2).pressed = true
|
||||
$PreferencesDialog.languages.get_child(0).pressed = false # Unset System Language option in preferences
|
||||
$PreferencesDialog.languages.get_child(locale_index + 1).pressed = true
|
||||
else: # If the user doesn't have a language preference, set it to their OS' locale
|
||||
TranslationServer.set_locale(OS.get_locale())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue