mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 15:29:32 +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("[${tradeLogic.otherCivilization.civName}]'s items".tr()).row()
|
||||
|
||||
add(ourAvailableOffersTable).size(columnWidth, screen.stage.height / 2)
|
||||
add(theirAvailableOffersTable).size(columnWidth, screen.stage.height / 2).row()
|
||||
add(ourAvailableOffersTable).prefSize(columnWidth, screen.stage.height / 2)
|
||||
add(theirAvailableOffersTable).prefSize(columnWidth, screen.stage.height / 2).row()
|
||||
|
||||
addSeparator().height(2f)
|
||||
|
||||
|
@ -96,7 +96,8 @@ class OffersListScroll(
|
||||
else -> null
|
||||
}
|
||||
val tradeButton = IconTextButton(tradeLabel, tradeIcon).apply {
|
||||
iconCell?.size(30f)
|
||||
if (tradeIcon != null)
|
||||
iconCell.size(30f)
|
||||
label.setAlignment(Align.center)
|
||||
labelCell.pad(5f).grow()
|
||||
}
|
||||
|
Reference in New Issue
Block a user