mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 06:51:30 -04:00
Civilopeida entries sorted alphabetically
This commit is contained in:
parent
93646cd74b
commit
13ff4843c0
@ -62,7 +62,8 @@ class CivilopediaScreen : CameraStageBaseScreen() {
|
||||
buttons.add(button)
|
||||
val buttonClicked = {
|
||||
val newArray = Array<ICivilopedia>()
|
||||
for (civilopediaEntry in map[str]!!) newArray.add(civilopediaEntry)
|
||||
for (civilopediaEntry in map[str]!!.sortedBy { it.toString() }) // Alphabetical order
|
||||
newArray.add(civilopediaEntry)
|
||||
nameList.setItems(newArray)
|
||||
nameList.selected = nameList.items.get(0)
|
||||
label.setText(nameList.selected.description)
|
||||
|
Loading…
x
Reference in New Issue
Block a user