Resolved #1359 - City name from overview screen now leads directly to the city scren
This commit is contained in:
parent
095deee125
commit
c447bd2da8
1 changed files with 2 additions and 2 deletions
|
@ -13,6 +13,7 @@ import com.unciv.logic.trade.Trade
|
|||
import com.unciv.logic.trade.TradeOffersList
|
||||
import com.unciv.models.gamebasics.tile.ResourceType
|
||||
import com.unciv.models.gamebasics.tr
|
||||
import com.unciv.ui.cityscreen.CityScreen
|
||||
import com.unciv.ui.utils.*
|
||||
import java.text.DecimalFormat
|
||||
import kotlin.math.roundToInt
|
||||
|
@ -245,8 +246,7 @@ class EmpireOverviewScreen : CameraStageBaseScreen(){
|
|||
for (city in currentPlayerCivInfo.cities.sortedBy { it.name }) {
|
||||
val button = Button(Label(city.name, skin), skin)
|
||||
button.onClick {
|
||||
UncivGame.Current.setWorldScreen()
|
||||
UncivGame.Current.worldScreen.tileMapHolder.setCenterPosition(city.ccenterTile.position)
|
||||
UncivGame.Current.setScreen(CityScreen(city))
|
||||
}
|
||||
cityInfoTableDetails.add(button)
|
||||
cityInfoTableDetails.add(city.cityConstructions.getCityProductionTextForCityButton()).actor!!.setAlignment(Align.left)
|
||||
|
|
Loading…
Reference in a new issue