mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-05 23:20:48 +07: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.onClick
|
||||
import com.unciv.ui.utils.extensions.toTextButton
|
||||
import com.unciv.utils.Log
|
||||
|
||||
class ConstructionInfoTable(val cityScreen: CityScreen): Table() {
|
||||
private val selectedConstructionTable = Table()
|
||||
@ -95,7 +94,7 @@ class ConstructionInfoTable(val cityScreen: CityScreen): Table() {
|
||||
if (construction is Building && cityConstructions.isBuilt(construction.name)
|
||||
&& construction.isSellable()) {
|
||||
val sellAmount = cityScreen.city.getGoldForSellingBuilding(construction.name)
|
||||
val sellText = "{Sell} [$sellAmount] " + Fonts.gold
|
||||
val sellText = "{Sell} $sellAmount " + Fonts.gold
|
||||
val sellBuildingButton = sellText.toTextButton()
|
||||
row()
|
||||
add(sellBuildingButton).padTop(5f).colspan(2).center()
|
||||
|
Loading…
Reference in New Issue
Block a user