mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 22:06:05 -04:00
Show construction icons in Cities Overview. (#5602)
* Show construction icons in Cities Overview. * Don't try to draw images for empty Cities Overview constructions.
This commit is contained in:
parent
860e788fb5
commit
79ec9a461a
@ -141,6 +141,12 @@ class CityOverviewTable(private val viewingPlayer: CivilizationInfo, private val
|
|||||||
}
|
}
|
||||||
citiesTable.add(button)
|
citiesTable.add(button)
|
||||||
|
|
||||||
|
if (city.cityConstructions.currentConstructionFromQueue.length > 0) {
|
||||||
|
citiesTable.add(ImageGetter.getConstructionImage(city.cityConstructions.currentConstructionFromQueue).surroundWithCircle(iconSize*0.8f)).padRight(paddingHorz)
|
||||||
|
} else {
|
||||||
|
citiesTable.add()
|
||||||
|
}
|
||||||
|
|
||||||
val cell = citiesTable.add(city.cityConstructions.getCityProductionTextForCityButton().toLabel())
|
val cell = citiesTable.add(city.cityConstructions.getCityProductionTextForCityButton().toLabel())
|
||||||
constructionCells.add(cell)
|
constructionCells.add(cell)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user