diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-02-17 08:00:18 +0100 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-02-17 08:00:18 +0100 |
| commit | 8da30c8dd8cc0860768ff0e54f0d092ac94013fa (patch) | |
| tree | 603cf87fe5a7cc0efc68b61443f46c6aa2ff4ce0 /draw.go | |
| parent | f059ff3201599fed63302ac9e0ff315a05059922 (diff) | |
Selection is now Selectable
Diffstat (limited to 'draw.go')
| -rw-r--r-- | draw.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -26,8 +26,8 @@ func (g *Game) Draw(screen *ebiten.Image) { op := &ebiten.DrawImageOptions{} op.GeoM.Translate(float64(position.X), float64(position.Y)) screen.DrawImage(image, op) - if mask&ecs.CM_Selection == ecs.CM_Selection { - selectable := g.Selection[i] + if mask&ecs.CM_Selectable == ecs.CM_Selectable { + selectable := g.Selectable[i] if selectable.IsSelected { opt := &ebiten.DrawImageOptions{} opt.GeoM.Translate(float64(position.X-selection.HaloWidth/2), float64(position.Y-selection.HaloWidth/2)) |
