diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-09 23:51:07 +0100 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-09 23:51:07 +0100 | 
| commit | 7a3176197f3ac936aea09d9bcbd7f5916798ee65 (patch) | |
| tree | d7157ff29a2ced73efd78cb6b8b7d795d6500cb6 /core | |
| parent | 126c2da904afc5d36184fdbe646642bb9e652211 (diff) | |
| download | RustAndDust-7a3176197f3ac936aea09d9bcbd7f5916798ee65.zip RustAndDust-7a3176197f3ac936aea09d9bcbd7f5916798ee65.tar.gz | |
EngagementPanel: specify dice animation dimension
Diffstat (limited to 'core')
| -rw-r--r-- | core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java | 14 | 
1 files 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() | 
