mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 05:09:25 +07:00
Resolved #2672 - Difficulties are sorted by ascending difficulty in Civilopedia
This commit is contained in:
@ -27,8 +27,10 @@ class CivilopediaScreen(ruleset: Ruleset) : CameraStageBaseScreen() {
|
|||||||
|
|
||||||
fun select(category: String) {
|
fun select(category: String) {
|
||||||
entrySelectTable.clear()
|
entrySelectTable.clear()
|
||||||
for (entry in categoryToEntries[category]!!
|
var entries = categoryToEntries[category]!!
|
||||||
.sortedBy { it.name.tr() }){ // Alphabetical order of localized names
|
if(category!="Difficulty levels") // this is the only case where we need them in order
|
||||||
|
entries = entries.sortedBy { it.name.tr() } // Alphabetical order of localized names
|
||||||
|
for (entry in entries){
|
||||||
val entryButton = Button(skin)
|
val entryButton = Button(skin)
|
||||||
if(entry.image!=null)
|
if(entry.image!=null)
|
||||||
if (category=="Terrains")
|
if (category=="Terrains")
|
||||||
|
Reference in New Issue
Block a user