From 79ec9a461a29a51e0660999bb06f477bdaa4f832 Mon Sep 17 00:00:00 2001 From: will-ca Date: Sat, 30 Oct 2021 10:25:55 -0700 Subject: [PATCH] Show construction icons in Cities Overview. (#5602) * Show construction icons in Cities Overview. * Don't try to draw images for empty Cities Overview constructions. --- core/src/com/unciv/ui/overviewscreen/CityOverviewTable.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/com/unciv/ui/overviewscreen/CityOverviewTable.kt b/core/src/com/unciv/ui/overviewscreen/CityOverviewTable.kt index 952d1f4b41..b8379abb8e 100644 --- a/core/src/com/unciv/ui/overviewscreen/CityOverviewTable.kt +++ b/core/src/com/unciv/ui/overviewscreen/CityOverviewTable.kt @@ -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)