mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-29 00:50:43 +07:00
Fix City plates aircraft table shape (#8332)
Co-authored-by: tunerzinc@gmail.com <vfylfhby>
This commit is contained in:
parent
4d8f056df7
commit
ecd52feaf8
@ -172,13 +172,18 @@ class CityButton(val city: CityInfo, private val tileGroup: WorldTileGroup): Tab
|
||||
private fun addAirUnitTable() {
|
||||
if (!showAdditionalInfoTags || tileGroup.tileInfo.airUnits.isEmpty()) return
|
||||
val secondaryColor = city.civInfo.nation.getInnerColor()
|
||||
val airUnitTable = Table()
|
||||
airUnitTable.background = BaseScreen.skinStrings.getUiBackground("WorldScreen/CityButton/AirUnitTable", BaseScreen.skinStrings.roundedEdgeRectangleShape, city.civInfo.nation.getOuterColor()).apply { setMinSize(0f,0f) }
|
||||
val airUnitTable = BorderedTable(
|
||||
path="WorldScreen/CityButton/AirUnitTable",
|
||||
defaultInner = BaseScreen.skinStrings.roundedEdgeRectangleSmallShape,
|
||||
defaultBorder = BaseScreen.skinStrings.roundedEdgeRectangleSmallShape,
|
||||
innerColor = city.civInfo.nation.getOuterColor(),
|
||||
borderColor = city.civInfo.nation.getOuterColor()
|
||||
)
|
||||
val aircraftImage = ImageGetter.getImage("OtherIcons/Aircraft")
|
||||
aircraftImage.color = secondaryColor
|
||||
airUnitTable.add(aircraftImage).size(15f)
|
||||
airUnitTable.add(tileGroup.tileInfo.airUnits.size.toString().toLabel(secondaryColor,14))
|
||||
add(airUnitTable).row()
|
||||
add(airUnitTable).padBottom(5f).minWidth(50f).row()
|
||||
}
|
||||
|
||||
private fun belongsToViewingCiv() = city.civInfo == worldScreen.viewingCiv
|
||||
|
Loading…
Reference in New Issue
Block a user