From 63ad22242562b1e66353694f2a17df6d1c64a8fd Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 16 Feb 2023 18:57:15 +0100 Subject: move more ui logic into Collection * Generalize hover detection and move it into ui.Collection * Implement transparencu for the prompt banner --- go/ui/widget.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'go/ui/widget.go') 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) { -- cgit v1.2.3