From 21a87ffccae9950580a240180fd3703768ef450e Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 1 Feb 2023 18:46:32 +0100 Subject: intermediate commit --- go/ui/choice.go | 2 +- go/ui/scrollable.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 go/ui/scrollable.go (limited to 'go/ui') 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) +} -- cgit v1.2.3