aboutsummaryrefslogtreecommitdiff
path: root/go/ui
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-01 18:46:32 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:45 +0100
commit21a87ffccae9950580a240180fd3703768ef450e (patch)
tree1cb83289216bd1e213d417812b4e09001ca89c09 /go/ui
parent3fd15c9b83fff074b588ff9688f9e49aab38cd32 (diff)
downloadmuhqs-game-21a87ffccae9950580a240180fd3703768ef450e.tar.gz
muhqs-game-21a87ffccae9950580a240180fd3703768ef450e.zip
intermediate commit
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)
+}