aboutsummaryrefslogtreecommitdiff
path: root/go/ui
diff options
context:
space:
mode:
Diffstat (limited to 'go/ui')
-rw-r--r--go/ui/choice.go2
-rw-r--r--go/ui/scrollable.go5
2 files changed, 6 insertions, 1 deletions
diff --git a/go/ui/choice.go b/go/ui/choice.go
index 71308d1b..003c2a6a 100644
--- a/go/ui/choice.go
+++ b/go/ui/choice.go
@@ -59,7 +59,7 @@ func (c *Choice) Render() *ebiten.Image {
return nil
}
-func NewActionChoice(x, y int, actions []game.ActionPrototype, onClick func(*Choice, int, int)) *Choice {
+func NewActionChoice(x, y int, actions []game.Action, onClick func(*Choice, int, int)) *Choice {
// TODO: use dynamic with width and height
width := 200
choiceHeight := 40
diff --git a/go/ui/scrollable.go b/go/ui/scrollable.go
new file mode 100644
index 00000000..90e0a3a5
--- /dev/null
+++ b/go/ui/scrollable.go
@@ -0,0 +1,5 @@
+package ui
+
+type Scrollable interface {
+ Scroll(x, y int)
+}