mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Fix "sell" containing square brackets
This commit is contained in:
parent
cba5ab0b91
commit
8b63b4bdeb
@ -23,7 +23,6 @@ import com.unciv.ui.utils.extensions.darken
|
|||||||
import com.unciv.ui.utils.extensions.disable
|
import com.unciv.ui.utils.extensions.disable
|
||||||
import com.unciv.ui.utils.extensions.onClick
|
import com.unciv.ui.utils.extensions.onClick
|
||||||
import com.unciv.ui.utils.extensions.toTextButton
|
import com.unciv.ui.utils.extensions.toTextButton
|
||||||
import com.unciv.utils.Log
|
|
||||||
|
|
||||||
class ConstructionInfoTable(val cityScreen: CityScreen): Table() {
|
class ConstructionInfoTable(val cityScreen: CityScreen): Table() {
|
||||||
private val selectedConstructionTable = Table()
|
private val selectedConstructionTable = Table()
|
||||||
@ -95,7 +94,7 @@ class ConstructionInfoTable(val cityScreen: CityScreen): Table() {
|
|||||||
if (construction is Building && cityConstructions.isBuilt(construction.name)
|
if (construction is Building && cityConstructions.isBuilt(construction.name)
|
||||||
&& construction.isSellable()) {
|
&& construction.isSellable()) {
|
||||||
val sellAmount = cityScreen.city.getGoldForSellingBuilding(construction.name)
|
val sellAmount = cityScreen.city.getGoldForSellingBuilding(construction.name)
|
||||||
val sellText = "{Sell} [$sellAmount] " + Fonts.gold
|
val sellText = "{Sell} $sellAmount " + Fonts.gold
|
||||||
val sellBuildingButton = sellText.toTextButton()
|
val sellBuildingButton = sellText.toTextButton()
|
||||||
row()
|
row()
|
||||||
add(sellBuildingButton).padTop(5f).colspan(2).center()
|
add(sellBuildingButton).padTop(5f).colspan(2).center()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user