Reduced collision height of health/mana widgets to the control widget height

This commit is contained in:
Collin Smith 2019-03-15 23:52:15 -07:00
parent 58a17c394d
commit 3a2a18aaf0

View File

@ -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);