From d2f139e6fa8826eee1330a75e06161add1fe1a1f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 7 Feb 2022 19:22:22 -0500 Subject: [PATCH] v1.2.0: added a little arrow to the inventory button in the full UI --- .../shatteredpixeldungeon/ui/Toolbar.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/Toolbar.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/Toolbar.java index 241d687d6..ec263e775 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/Toolbar.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/Toolbar.java @@ -145,6 +145,8 @@ public class Toolbar extends Component { add(btnInventory = new Tool(0, 0, 24, 26) { private CurrencyIndicator ind; + private Image arrow; + @Override protected void onClick() { if (SPDSettings.interfaceSize() == 2){ @@ -170,12 +172,22 @@ public class Toolbar extends Component { super.createChildren(); ind = new CurrencyIndicator(); add(ind); + + arrow = Icons.get(Icons.COMPASS); + arrow.originToCenter(); + arrow.visible = SPDSettings.interfaceSize() == 2; + arrow.tint(0x3D2E18, 1f); + add(arrow); } @Override protected void layout() { super.layout(); ind.fill(this); + + arrow.x = left() + (width - arrow.width())/2; + arrow.y = bottom()-arrow.height-1; + arrow.angle = bottom() == camera().height ? 0 : 180; } });