diff --git a/core/src/com/unciv/ui/screens/overviewscreen/CityOverviewTable.kt b/core/src/com/unciv/ui/screens/overviewscreen/CityOverviewTable.kt index d1da68ff6e..9c98dcb64b 100644 --- a/core/src/com/unciv/ui/screens/overviewscreen/CityOverviewTable.kt +++ b/core/src/com/unciv/ui/screens/overviewscreen/CityOverviewTable.kt @@ -229,8 +229,14 @@ class CityOverviewTab( cityInfoTableDetails.add(image) } city.demandedResource.isNotEmpty() -> { - val image = ImageGetter.getResourcePortrait(city.demandedResource, iconSize *0.7f) - image.addTooltip("Demanding [${city.demandedResource}]", 18f, tipAlign = Align.topLeft) + val image = ImageGetter.getResourcePortrait(city.demandedResource, iconSize *0.7f).apply { + addTooltip("Demanding [${city.demandedResource}]", 18f, tipAlign = Align.topLeft) + onClick { + if (gameInfo.notifyExploredResources(viewingPlayer, city.demandedResource, 0, true)) { + overviewScreen.game.popScreen() + } + } + } cityInfoTableDetails.add(image) } else -> cityInfoTableDetails.add()