summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/rustanddust/game/hud/UnitDock.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java b/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java
index 41388ec..fe73e27 100644
--- a/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java
+++ b/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java
@@ -58,7 +58,11 @@ public class UnitDock extends Bg implements Animation
this.visible = false;
this.dx = 0f;
this.dy = 0f;
- SCALE = Math.max((Gdx.graphics.getHeight() * 0.0005f), 0.4f);
+ }
+
+ public static void setScale(float scale)
+ {
+ SCALE = scale;
}
@Override