mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-13 01:08:25 +07:00
UI improvements - added thin lines around circle icons, cleaner politics table
This commit is contained in:
@ -248,7 +248,7 @@ object ImageGetter {
|
||||
if (improvement != null)
|
||||
iconGroup.circle.color = getColorFromStats(improvement)
|
||||
|
||||
return iconGroup
|
||||
return iconGroup.surroundWithThinCircle(Color.BLACK)
|
||||
}
|
||||
|
||||
fun getPortraitImage(construction: String, size: Float): Group {
|
||||
@ -291,8 +291,9 @@ object ImageGetter {
|
||||
if (imageAttempter.getPathOrNull() != null && imageAttempter.getPath()!!.endsWith(nameWithoutBrackets))
|
||||
level = 0
|
||||
|
||||
val promotionColor = colorFromRGB(255, 226, 0)
|
||||
val circle = imageAttempter.getImage()
|
||||
.apply { color = colorFromRGB(255, 226, 0) }
|
||||
.apply { color = promotionColor }
|
||||
.surroundWithCircle(size)
|
||||
.apply { circle.color = colorFromRGB(0, 12, 49) }
|
||||
|
||||
@ -304,7 +305,7 @@ object ImageGetter {
|
||||
starTable.y = size / 6f
|
||||
circle.addActor(starTable)
|
||||
}
|
||||
return circle
|
||||
return circle.surroundWithThinCircle(promotionColor)
|
||||
}
|
||||
|
||||
fun religionIconExists(iconName: String) = imageExists("ReligionIcons/$iconName")
|
||||
@ -365,7 +366,7 @@ object ImageGetter {
|
||||
production.x = iconGroup.width - production.width
|
||||
iconGroup.addActor(production)
|
||||
}
|
||||
return iconGroup
|
||||
return iconGroup.surroundWithThinCircle(Color.BLACK)
|
||||
}
|
||||
|
||||
fun getTechIconGroup(techName: String, circleSize: Float): IconCircleGroup {
|
||||
|
@ -81,8 +81,10 @@ class GlobalPoliticsOverviewTable (
|
||||
addSeparatorVertical(Color.GRAY)
|
||||
add("Wonders".toLabel())
|
||||
addSeparatorVertical(Color.GRAY)
|
||||
add("Relations".toLabel())
|
||||
add(Table().apply {
|
||||
add("Relations".toLabel()).row()
|
||||
add(diagramButton).pad(10f)
|
||||
})
|
||||
row()
|
||||
addSeparator(Color.GRAY)
|
||||
|
||||
|
Reference in New Issue
Block a user