diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-09 22:30:58 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-09 22:30:58 +0100 |
commit | 8f4b73804f0958c020f6304795ffea916a907028 (patch) | |
tree | 5d2a91981485e2554f69e478f9b3bc48aa701eda /core/src/ch/asynk | |
parent | f041e267040ee6c777df95829eb5558e47af9ef2 (diff) | |
download | RustAndDust-8f4b73804f0958c020f6304795ffea916a907028.zip RustAndDust-8f4b73804f0958c020f6304795ffea916a907028.tar.gz |
UnitDock: add setScale(float)
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/hud/UnitDock.java | 6 |
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 |