From 7a3176197f3ac936aea09d9bcbd7f5916798ee65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 9 Nov 2015 23:51:07 +0100 Subject: EngagementPanel: specify dice animation dimension --- .../src/ch/asynk/rustanddust/game/hud/EngagementPanel.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java b/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java index 0597a29..bac418f 100644 --- a/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java +++ b/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java @@ -23,6 +23,7 @@ public class EngagementPanel extends Patch implements Animation public static int VSPACING = 15; public static int HSPACING = 5; public static float MOVE_STEP = 2f; + public static int DICE_DIMENSION = 24; private State state; private boolean reroll; @@ -55,10 +56,15 @@ public class EngagementPanel extends Patch implements Animation this.defenseR = new Label(font); this.okBtn = new Bg(uiAtlas.findRegion("ok")); this.visible = false; - this.d1Animation = new DiceAnimation(); - this.d2Animation = new DiceAnimation(); - this.d3Animation = new DiceAnimation(); - this.d4Animation = new DiceAnimation(); + this.d1Animation = new DiceAnimation(DICE_DIMENSION); + this.d2Animation = new DiceAnimation(DICE_DIMENSION); + this.d3Animation = new DiceAnimation(DICE_DIMENSION); + this.d4Animation = new DiceAnimation(DICE_DIMENSION); + } + + public static void setDiceDimension(int dimension) + { + DICE_DIMENSION = dimension; } public void updatePosition() -- cgit v1.1-2-g2b99