mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
Resolved #2672 - Difficulties are sorted by ascending difficulty in Civilopedia
This commit is contained in:
parent
84e4e58f23
commit
4a69544c7d
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user