aboutsummaryrefslogtreecommitdiff
path: root/go/client
diff options
context:
space:
mode:
Diffstat (limited to 'go/client')
-rw-r--r--go/client/game.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/go/client/game.go b/go/client/game.go
index bbfb6643..0e516815 100644
--- a/go/client/game.go
+++ b/go/client/game.go
@@ -206,9 +206,11 @@ func (g *Game) addPermActionChoice(perm game.Permanent, x, y int) {
}
perms := []game.Permanent{perm}
+ labels := []string{perm.Card().Name}
for _, p := range perm.Pile() {
if len(p.CurrentlyAvailActions()) > 0 {
perms = append(perms, p)
+ labels = append(labels, p.Card().Name)
}
}
@@ -219,7 +221,7 @@ func (g *Game) addPermActionChoice(perm game.Permanent, x, y int) {
p := perms[c.GetChoosen(x, y)]
g.addActionChoice(p, x, y)
}
- g.addChoice(ui.NewPermChoice(x, y, perms, onClick))
+ g.addChoice(ui.NewChoice(x, y, utils.TypedSliceToInterfaceSlice(labels), onClick))
} else {
g.selectedObject = perms[0]
g.addActionChoice(perms[0], x, y)