From b4214baf1f485ced8c7c397c6b579462e3cb6f0c Mon Sep 17 00:00:00 2001 From: yairm210 Date: Sun, 16 Jan 2022 22:07:44 +0200 Subject: [PATCH] Smaller stars on the promotions, so they don't 'leak' outside the promotion image --- core/src/com/unciv/ui/utils/ImageGetter.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/ui/utils/ImageGetter.kt b/core/src/com/unciv/ui/utils/ImageGetter.kt index b0470acaa0..ff6356fb35 100644 --- a/core/src/com/unciv/ui/utils/ImageGetter.kt +++ b/core/src/com/unciv/ui/utils/ImageGetter.kt @@ -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)