From f14a9d5985b768bea9b21a6f1ea35dd6fdb264f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 9 Nov 2015 23:51:30 +0100 Subject: RustAndDust: call EngagementPanel.setDiceAnimation --- core/src/ch/asynk/rustanddust/RustAndDust.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/ch/asynk/rustanddust/RustAndDust.java b/core/src/ch/asynk/rustanddust/RustAndDust.java index 819e1d2..a00a69d 100644 --- a/core/src/ch/asynk/rustanddust/RustAndDust.java +++ b/core/src/ch/asynk/rustanddust/RustAndDust.java @@ -18,6 +18,7 @@ import ch.asynk.rustanddust.game.Config; import ch.asynk.rustanddust.game.battles.Factory; import ch.asynk.rustanddust.ui.Bg; import ch.asynk.rustanddust.game.hud.UnitDock; +import ch.asynk.rustanddust.game.hud.EngagementPanel; public class RustAndDust extends Game { @@ -161,8 +162,9 @@ public class RustAndDust extends Game parameter.color = Color.WHITE; fontW = generator.generateFont(parameter); - UnitDock.setScale(Math.max((h * 0.0005f), 0.4f)); Bg.setScale(Math.max((h * 0.00125f), 0.4f)); + UnitDock.setScale(Math.max((h * 0.0005f), 0.4f)); + EngagementPanel.setDiceDimension((int) Math.max((h * 0.03f), 24)); } private void unloadUiAssets() -- cgit v1.1-2-g2b99