From 42d4f7f4dd7e0c4a82d0285506326706d24d0e9a Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sun, 3 Mar 2019 17:52:52 -0800 Subject: [PATCH] Adjusted background offsets for neck, rring, lring --- core/src/gdx/diablo/panel/InventoryPanel.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/gdx/diablo/panel/InventoryPanel.java b/core/src/gdx/diablo/panel/InventoryPanel.java index 786b61ea..041f320a 100644 --- a/core/src/gdx/diablo/panel/InventoryPanel.java +++ b/core/src/gdx/diablo/panel/InventoryPanel.java @@ -166,6 +166,8 @@ public class InventoryPanel extends WidgetGroup implements Disposable { neck.setPosition( inventory.neckLeft - inventory.invLeft, getHeight() - inventory.neckBottom); + neck.xOffs = -1; + neck.yOffs = 1; addActor(neck); BodyPart rHand = bodyParts[BodyLocs.RRIN] = new BodyPart(BodyLoc.RRIN, inv_ring_amulet.getTexture(1)); @@ -173,6 +175,8 @@ public class InventoryPanel extends WidgetGroup implements Disposable { rHand.setPosition( inventory.rHandLeft - inventory.invLeft, getHeight() - inventory.rHandBottom); + rHand.xOffs = -1; + rHand.yOffs = 1; addActor(rHand); BodyPart lHand = bodyParts[BodyLocs.LRIN] = new BodyPart(BodyLoc.LRIN, inv_ring_amulet.getTexture(1)); @@ -180,6 +184,8 @@ public class InventoryPanel extends WidgetGroup implements Disposable { lHand.setPosition( inventory.lHandLeft - inventory.invLeft, getHeight() - inventory.lHandBottom); + lHand.xOffs = -1; + lHand.yOffs = 1; addActor(lHand); BodyPart belt = bodyParts[BodyLocs.BELT] = new BodyPart(BodyLoc.BELT, inv_belt.getTexture());