aboutsummaryrefslogtreecommitdiff
path: root/go/ui
diff options
context:
space:
mode:
Diffstat (limited to 'go/ui')
-rw-r--r--go/ui/choice.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/go/ui/choice.go b/go/ui/choice.go
index 5954c1fa..80902606 100644
--- a/go/ui/choice.go
+++ b/go/ui/choice.go
@@ -32,7 +32,15 @@ func (c *Choice) setText() {
c.Width, c.Height = -1, -1
t := ""
for _, choice := range c.choices {
- t = fmt.Sprintf("%s%v\n", t, choice)
+ switch c := choice.(type) {
+ // Special case Free and FullActions
+ case *game.FreeAction:
+ t = fmt.Sprintf("%s%v\n", t, c.Desc)
+ case *game.FullAction:
+ t = fmt.Sprintf("%s↻%v\n", t, c.Desc)
+ default:
+ t = fmt.Sprintf("%s%v\n", t, choice)
+ }
}
c.text = t[:len(t)-1]