diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-17 16:49:20 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-17 16:49:20 +0100 |
commit | d4537369a20ac608d3983d84b82855f6f97b9259 (patch) | |
tree | e00cd4488744f444c7b07c10c16e2738476ecee9 /core | |
parent | 8aa3799b3865eb6436ba2053687d5b8b22414ba2 (diff) | |
download | RustAndDust-d4537369a20ac608d3983d84b82855f6f97b9259.zip RustAndDust-d4537369a20ac608d3983d84b82855f6f97b9259.tar.gz |
Hud: add resize(int width, int height) -> updatePosition() on each element
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hud.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java index d2758ff..95df516 100644 --- a/core/src/ch/asynk/tankontank/game/Hud.java +++ b/core/src/ch/asynk/tankontank/game/Hud.java @@ -75,6 +75,17 @@ public class Hud implements Disposable, Animation stats.dispose(); } + public void resize(int width, int height) + { + Position.update(width, height); + playerInfo.updatePosition(); + actionButtons.updatePosition(); + msg.updatePosition(); + stats.updatePosition(); + engagement.updatePosition(); + okCancel.updatePosition(); + } + public void update() { Position position = ctrl.battle.getHudPosition(ctrl.player); |