diff options
Diffstat (limited to 'go/ui/choice.go')
| -rw-r--r-- | go/ui/choice.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/go/ui/choice.go b/go/ui/choice.go index bacc6657..28878604 100644 --- a/go/ui/choice.go +++ b/go/ui/choice.go @@ -51,16 +51,8 @@ func (c *Choice) Contains(x, y int) bool { return x >= c.X && x <= c.X+c.Width && y >= c.Y && y <= c.Y+height } -func (c *Choice) FindObjectAt(x, y int) interface{} { - if c.Contains(x, y) { - return c - } - return nil -} - -func (c *Choice) Render() *ebiten.Image { - return nil -} +func (c *Choice) FindObjectAt(x, y int) interface{} { return nil } +func (c *Choice) Render() *ebiten.Image { return nil } func NewObjectChoice(x, y int, objs []interface{}, onClick func(*Choice, int, int)) *Choice { // TODO: use dynamic with width and height |
