diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-08-06 18:02:44 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:35 +0200 |
| commit | 778487d25a79721539cea1e47331e3c2f985c8cc (patch) | |
| tree | 1762762f69895465e7d1a0c9844ed9dbb28b2a71 /go/ui/textBox.go | |
| parent | 121016509135952eb1144abdaa8aeabe5bebe682 (diff) | |
| download | muhqs-game-778487d25a79721539cea1e47331e3c2f985c8cc.tar.gz muhqs-game-778487d25a79721539cea1e47331e3c2f985c8cc.zip | |
rework hover detection
Diffstat (limited to 'go/ui/textBox.go')
| -rw-r--r-- | go/ui/textBox.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/ui/textBox.go b/go/ui/textBox.go index 287c2a89..9f5ff0f4 100644 --- a/go/ui/textBox.go +++ b/go/ui/textBox.go @@ -144,7 +144,7 @@ type PocList struct { poc game.PileOfCards } -func NewPocList(centerX, bottomY int, poc game.PileOfCards) *PocList { +func NewPocList(centerX, bottomY int, poc game.PileOfCards, c *Collection) *PocList { w := &PocList{ TextBox: *(NewAutoTextBox(-1, -1, "").Centering(true)), centerX: centerX, @@ -152,7 +152,7 @@ func NewPocList(centerX, bottomY int, poc game.PileOfCards) *PocList { poc: poc, } - w.hoverCardView.init(w) + w.hoverCardView.init(w, c) w.renderImpl = func() *ebiten.Image { w.setText() |
