mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 18:44:05 +09:00
writing config to disk
This commit is contained in:
@@ -70,10 +70,12 @@ class UITitleLanguage : UICanvas() {
|
||||
// attach listeners
|
||||
textArea1.selectionChangeListener = { _, newSelectionIndex ->
|
||||
App.GAME_LOCALE = localeList[newSelectionIndex]
|
||||
App.setConfig("language", localeList[newSelectionIndex])
|
||||
textArea2.deselect()
|
||||
}
|
||||
textArea2.selectionChangeListener = { _, newSelectionIndex ->
|
||||
App.GAME_LOCALE = localeList[newSelectionIndex + localeFirstHalf.size]
|
||||
App.setConfig("language", localeList[newSelectionIndex + localeFirstHalf.size])
|
||||
textArea1.deselect()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user