diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-16 18:57:15 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:50:10 +0200 |
| commit | 63ad22242562b1e66353694f2a17df6d1c64a8fd (patch) | |
| tree | f91a3a98e554e58a30d5bb0a34b021c7fb206311 /go/ui/button.go | |
| parent | c0ab1110429be3a2a1664084469952ea082961c1 (diff) | |
| download | muhqs-game-63ad22242562b1e66353694f2a17df6d1c64a8fd.tar.gz muhqs-game-63ad22242562b1e66353694f2a17df6d1c64a8fd.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/button.go')
| -rw-r--r-- | go/ui/button.go | 7 |
1 files changed, 0 insertions, 7 deletions
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) } |
