Display the current amount of gold in the prompt dialog (#1995)
This commit is contained in:
parent
eb0fd17d9b
commit
9f0e74be1f
4 changed files with 7 additions and 2 deletions
|
@ -854,6 +854,7 @@ Raze city = Разрушить город
|
|||
Stop razing city = Отменить разрушение города
|
||||
Buy for [amount] gold = Купить за [amount] золота
|
||||
Buy = Купить
|
||||
Currently you have [amount] gold. = Сейчас у вас есть [amount] золота.
|
||||
Would you like to purchase [constructionName] for [buildingGoldCost] gold? = Хотите купить [constructionName] за [buildingGoldCost] золота?
|
||||
Maintenance cost = Стоимость обслуживания
|
||||
Pick construction = Выбрать здание
|
||||
|
|
|
@ -858,7 +858,8 @@ Raze city = Зруйнувати місто
|
|||
Stop razing city = Зупинити руйнування міста
|
||||
Buy for [amount] gold = Купити за [amount] золота
|
||||
Buy = Купити
|
||||
Would you like to purchase [constructionName] for [buildingGoldCost] gold? = Чи хотіли б ви придбати [constructionName] за [buildingGoldCost]?
|
||||
Currently you have [amount] gold. = Зараз у вас в наявності [amount] золота.
|
||||
Would you like to purchase [constructionName] for [buildingGoldCost] gold? = Бажаєте придбати [constructionName] за [buildingGoldCost] золота?
|
||||
Maintenance cost = Вартість обслуговування
|
||||
Pick construction = Вибрати споруду
|
||||
Pick improvement = Вибрати вдосконалення
|
||||
|
|
|
@ -854,6 +854,7 @@ Raze city =
|
|||
Stop razing city =
|
||||
Buy for [amount] gold =
|
||||
Buy =
|
||||
Currently you have [amount] gold. =
|
||||
Would you like to purchase [constructionName] for [buildingGoldCost] gold? =
|
||||
Maintenance cost =
|
||||
Pick construction =
|
||||
|
|
|
@ -288,7 +288,9 @@ class ConstructionsTable(val cityScreen: CityScreen) : Table(CameraStageBaseScre
|
|||
button.add(ImageGetter.getStatIcon(Stat.Gold.name)).size(20f).padBottom(2f)
|
||||
|
||||
button.onClick(UncivSound.Coin) {
|
||||
YesNoPopup("Would you like to purchase [${construction.name}] for [$constructionGoldCost] gold?".tr(), {
|
||||
val purchasePrompt = "Currently you have [${city.civInfo.gold}] gold.".tr() + "\n\n" +
|
||||
"Would you like to purchase [${construction.name}] for [$constructionGoldCost] gold?".tr()
|
||||
YesNoPopup(purchasePrompt, {
|
||||
cityConstructions.purchaseConstruction(construction.name)
|
||||
if (isSelectedQueueEntry()) {
|
||||
// currentConstruction is removed from the queue by purchaseConstruction
|
||||
|
|
Loading…
Reference in a new issue