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/button.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'go/ui/button.go') diff --git a/go/ui/button.go b/go/ui/button.go index 78ab459f..eac3c2e4 100644 --- a/go/ui/button.go +++ b/go/ui/button.go @@ -41,13 +41,6 @@ func (b *SimpleButton) render() *ebiten.Image { return img } -func (b *SimpleButton) FindObjectAt(x, y int) interface{} { - if b.Contains(x, y) { - return b - } - return nil -} - func (b *SimpleButton) Click(x, y int) { b.OnClick(b) } -- cgit v1.2.3