summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game/hud
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-11 00:57:34 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-11 00:57:34 +0100
commit24540080dda622a4d576304952dad80cce6b3e0a (patch)
treec1e7ac0c79fc0f8312a9c1eba312a90bfdd3fdaf /core/src/ch/asynk/tankontank/game/hud
parent11dbbe1f3a22524de9bea7c3485cf2bf87e7cbfb (diff)
downloadRustAndDust-24540080dda622a4d576304952dad80cce6b3e0a.zip
RustAndDust-24540080dda622a4d576304952dad80cce6b3e0a.tar.gz
UnitDock: notify selection
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/hud')
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/UnitDock.java1
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;