From 3a2a18aaf0f019814d1d174ab41c8c8992afe483 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Fri, 15 Mar 2019 23:52:15 -0700 Subject: [PATCH] Reduced collision height of health/mana widgets to the control widget height --- core/src/com/riiablo/panel/ControlPanel.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/com/riiablo/panel/ControlPanel.java b/core/src/com/riiablo/panel/ControlPanel.java index 212d900c..855612bf 100644 --- a/core/src/com/riiablo/panel/ControlPanel.java +++ b/core/src/com/riiablo/panel/ControlPanel.java @@ -71,6 +71,8 @@ public class ControlPanel extends WidgetGroup implements Disposable { healthWidget = new HealthWidget(ctrlpnl.getTexture(0)); manaWidget = new ManaWidget(ctrlpnl.getTexture(numFrames - 2)); controlWidget = new ControlWidget(new Texture(new PixmapTextureData(pixmap, null, false, false, false))); + healthWidget.setHeight(controlWidget.getHeight()); + manaWidget.setHeight(controlWidget.getHeight()); healthWidget.setX(0); healthWidget.setY(1);