mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Add temporary offset for custom images
This commit is contained in:
@@ -235,8 +235,8 @@ public enum VSubmenuAchievements implements IVSubmenu<CSubmenuAchievements> {
|
|||||||
if (customImage != null) {
|
if (customImage != null) {
|
||||||
Dimension customImageSize = customImage.getSizeForPaint(g2d);
|
Dimension customImageSize = customImage.getSizeForPaint(g2d);
|
||||||
FSkin.drawImage(g2d, customImage,
|
FSkin.drawImage(g2d, customImage,
|
||||||
x + (w - customImageSize.width) / 2,
|
x + (w - customImageSize.width) / 2 + 1, //TODO: Remove +1 when image centered properly
|
||||||
y + h - customImageSize.height + 8, //TODO: Remove when gap below images removed
|
y + h - customImageSize.height + 8, //TODO: Remove +8 when gap below images removed
|
||||||
customImageSize.width, customImageSize.height);
|
customImageSize.width, customImageSize.height);
|
||||||
}
|
}
|
||||||
else if (achievement.earnedGold()) {
|
else if (achievement.earnedGold()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user