mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
Smaller stars on the promotions, so they don't 'leak' outside the promotion image
This commit is contained in:
parent
e074ed7546
commit
b4214baf1f
@ -296,8 +296,9 @@ object ImageGetter {
|
||||
.surroundWithCircle(size)
|
||||
.apply { circle.color = colorFromRGB(0, 12, 49) }
|
||||
if (level != 0) {
|
||||
val starTable = Table().apply { defaults().pad(2f) }
|
||||
for (i in 1..level) starTable.add(getImage("OtherIcons/Star")).size(size / 3f)
|
||||
val padding = if (level == 3) 0.5f else 2f
|
||||
val starTable = Table().apply { defaults().pad(padding) }
|
||||
for (i in 1..level) starTable.add(getImage("OtherIcons/Star")).size(size / 4f)
|
||||
starTable.centerX(circle)
|
||||
starTable.y = size / 6f
|
||||
circle.addActor(starTable)
|
||||
|
Loading…
Reference in New Issue
Block a user