From 0ffb6c9e15d9a49a15c5d0d197c9417414010600 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 18 Jan 2022 18:59:54 -0500 Subject: [PATCH] v1.2.0: fixed layout issues in loot indicator --- .../shatteredpixeldungeon/ui/LootIndicator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/LootIndicator.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/LootIndicator.java index fe7857ef2..d39784a0f 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/LootIndicator.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/LootIndicator.java @@ -67,8 +67,8 @@ public class LootIndicator extends Tag { protected void layout() { super.layout(); - if (!flipped) slot.setRect( x + 1, y, SIZE, height ); - else slot.setRect( x + (width() - SIZE) - 1, y, SIZE, height ); + if (!flipped) slot.setRect( x+2, y+2, SIZE-3, height-4 ); + else slot.setRect( x+(width()-SIZE)+1, y+2, SIZE-3, height-4 ); }