writing config to disk

This commit is contained in:
minjaesong
2021-09-19 15:15:42 +09:00
parent b741d463bb
commit 66e77e0a01
8 changed files with 76 additions and 6 deletions

View File

@@ -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()
}