diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-16 18:57:15 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:50 +0100 |
| commit | c12057320c06f9b4a0bd6c9b25a1dd2d2bd8fd8d (patch) | |
| tree | 77e2d4f4b1430b95fd20dc14a8c2c561a80d6bc8 /go/ui/widget.go | |
| parent | 2f01274717d62e59e4bf3b4426a2ec6a76ffac11 (diff) | |
| download | muhqs-game-c12057320c06f9b4a0bd6c9b25a1dd2d2bd8fd8d.tar.gz muhqs-game-c12057320c06f9b4a0bd6c9b25a1dd2d2bd8fd8d.zip | |
move more ui logic into Collection
* Generalize hover detection and move it into ui.Collection
* Implement transparencu for the prompt banner
Diffstat (limited to 'go/ui/widget.go')
| -rw-r--r-- | go/ui/widget.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/go/ui/widget.go b/go/ui/widget.go index cfcdd766..4ee0caac 100644 --- a/go/ui/widget.go +++ b/go/ui/widget.go @@ -17,12 +17,8 @@ type WidgetBase struct { renderImpl func() *ebiten.Image } -func renderDummy() *ebiten.Image { - return nil -} - func NewWidgetBase(x, y, width, height int) WidgetBase { - return WidgetBase{x, y, width, height, nil, renderDummy} + return WidgetBase{X: x, Y: y, Width: width, Height: height} } func (w *WidgetBase) Draw(screen *ebiten.Image) { |
