From 24540080dda622a4d576304952dad80cce6b3e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 11 Nov 2014 00:57:34 +0100 Subject: UnitDock: notify selection --- core/src/ch/asynk/tankontank/game/hud/UnitDock.java | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.1-2-g2b99