mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-06 00:09:23 +07: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:
@ -141,6 +141,12 @@ class CityOverviewTable(private val viewingPlayer: CivilizationInfo, private val
|
||||
}
|
||||
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())
|
||||
constructionCells.add(cell)
|
||||
|
||||
|
Reference in New Issue
Block a user