diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-11 00:57:34 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-11 00:57:34 +0100 |
commit | 24540080dda622a4d576304952dad80cce6b3e0a (patch) | |
tree | c1e7ac0c79fc0f8312a9c1eba312a90bfdd3fdaf | |
parent | 11dbbe1f3a22524de9bea7c3485cf2bf87e7cbfb (diff) | |
download | RustAndDust-24540080dda622a4d576304952dad80cce6b3e0a.zip RustAndDust-24540080dda622a4d576304952dad80cce6b3e0a.tar.gz |
UnitDock: notify selection
-rw-r--r-- | core/src/ch/asynk/tankontank/game/hud/UnitDock.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/UnitDock.java b/core/src/ch/asynk/tankontank/game/hud/UnitDock.java index 5bd2a6d..4e78c32 100644 --- a/core/src/ch/asynk/tankontank/game/hud/UnitDock.java +++ b/core/src/ch/asynk/tankontank/game/hud/UnitDock.java @@ -85,6 +85,7 @@ public class UnitDock extends Bg if (visible && scaledRect.contains(x, y)) { int i = (int) ((scaledRect.y + scaledRect.height - y) / (scaledRect.height / pawns.size())); selectedPawn = pawns.get(i); + ctrl.hud.notify(selectedPawn.toString()); return true; } selectedPawn = null; |