mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 15:59:33 +07:00
Update trade UI. (#8185)
* delete unnecessary icon space. * replace table fixed size with preferred size.
This commit is contained in:
@ -59,8 +59,8 @@ class OfferColumnsTable(private val tradeLogic: TradeLogic, val screen: Diplomac
|
|||||||
add("Our items".tr())
|
add("Our items".tr())
|
||||||
add("[${tradeLogic.otherCivilization.civName}]'s items".tr()).row()
|
add("[${tradeLogic.otherCivilization.civName}]'s items".tr()).row()
|
||||||
|
|
||||||
add(ourAvailableOffersTable).size(columnWidth, screen.stage.height / 2)
|
add(ourAvailableOffersTable).prefSize(columnWidth, screen.stage.height / 2)
|
||||||
add(theirAvailableOffersTable).size(columnWidth, screen.stage.height / 2).row()
|
add(theirAvailableOffersTable).prefSize(columnWidth, screen.stage.height / 2).row()
|
||||||
|
|
||||||
addSeparator().height(2f)
|
addSeparator().height(2f)
|
||||||
|
|
||||||
|
@ -96,7 +96,8 @@ class OffersListScroll(
|
|||||||
else -> null
|
else -> null
|
||||||
}
|
}
|
||||||
val tradeButton = IconTextButton(tradeLabel, tradeIcon).apply {
|
val tradeButton = IconTextButton(tradeLabel, tradeIcon).apply {
|
||||||
iconCell?.size(30f)
|
if (tradeIcon != null)
|
||||||
|
iconCell.size(30f)
|
||||||
label.setAlignment(Align.center)
|
label.setAlignment(Align.center)
|
||||||
labelCell.pad(5f).grow()
|
labelCell.pad(5f).grow()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user