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:
will-ca
2021-10-30 10:25:55 -07:00
committed by GitHub
parent 860e788fb5
commit 79ec9a461a

View File

@ -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)