Display an amount of gold when buying the tile (#2127)

This commit is contained in:
Jack Rainy 2020-03-12 08:32:29 +02:00 committed by GitHub
parent 1564856391
commit 97a9a0f08c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 1 deletions

View file

@ -837,6 +837,7 @@ Raze city = Разрушить город
Stop razing city = Отменить разрушение города
Buy for [amount] gold = Купить за [amount] золота
Buy = Купить
You have [amount] gold = У вас есть [amount] золота
Currently you have [amount] gold. = Сейчас у вас есть [amount] золота.
Would you like to purchase [constructionName] for [buildingGoldCost] gold? = Хотите купить [constructionName] за [buildingGoldCost] золота?
No space available to place [unit] near [city] = Возле [city] нет места, чтобы разместить [unit]

View file

@ -817,6 +817,7 @@ Raze city = Зруйнувати місто
Stop razing city = Зупинити руйнування міста
Buy for [amount] gold = Купити за [amount] золота
Buy = Купити
You have [amount] gold = У вас є [amount] золота
Currently you have [amount] gold. = Зараз у вас в наявності [amount] золота.
Would you like to purchase [constructionName] for [buildingGoldCost] gold? = Бажаєте придбати [constructionName] за [buildingGoldCost] золота?
No space available to place [unit] near [city] = Біля [city] немає місця, щоб розмістити [unit]

View file

@ -813,6 +813,7 @@ Raze city =
Stop razing city =
Buy for [amount] gold =
Buy =
You have [amount] gold =
Currently you have [amount] gold. =
Would you like to purchase [constructionName] for [buildingGoldCost] gold? =
No space available to place [unit] near [city] =

View file

@ -49,7 +49,8 @@ class CityScreenTileTable(val city: CityInfo): Table(){
if(goldCostOfTile>city.civInfo.gold || city.isPuppet || !UncivGame.Current.worldScreen.isPlayersTurn)
buyTileButton.disable()
innerTable.add(buyTileButton)
innerTable.add(buyTileButton).row()
innerTable.add("You have [${city.civInfo.gold}] gold".toLabel(Color.YELLOW, 16)).padTop(2f)
}
if(city.canAcquireTile(selectedTile)) {
val acquireTileButton = TextButton("Acquire".tr(), CameraStageBaseScreen.skin)