mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-12 08:49:22 +07:00
Sorted list of icons for promotions (#2164)
This commit is contained in:
@ -167,7 +167,7 @@ class UnitTable(val worldScreen: WorldScreen) : Table(){
|
|||||||
|
|
||||||
if(selectedUnit!=null) {
|
if(selectedUnit!=null) {
|
||||||
unitIconHolder.add(UnitGroup(selectedUnit!!,30f)).pad(5f)
|
unitIconHolder.add(UnitGroup(selectedUnit!!,30f)).pad(5f)
|
||||||
for(promotion in selectedUnit!!.promotions.promotions)
|
for(promotion in selectedUnit!!.promotions.promotions.sorted())
|
||||||
promotionsTable.add(ImageGetter.getPromotionIcon(promotion))
|
promotionsTable.add(ImageGetter.getPromotionIcon(promotion))
|
||||||
|
|
||||||
// Since Clear also clears the listeners, we need to re-add it every time
|
// Since Clear also clears the listeners, we need to re-add it every time
|
||||||
|
Reference in New Issue
Block a user