diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-09-19 06:47:50 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-09-19 06:48:50 +0200 |
| commit | 0305cd01f8438d2c23033958120e61dff4fd2b1b (patch) | |
| tree | 41beb17a71d881f162aaddcd9d721cd39aac6df3 /entity.go | |
| parent | dc17461910194815ff9b329f386f17d6218a5853 (diff) | |
fix: Display selection rect above all entities
Diffstat (limited to 'entity.go')
| -rw-r--r-- | entity.go | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -29,11 +29,6 @@ func Draw(screen *ebiten.Image, e *Entity) { if e.Image.IsEnabled && e.Position.IsEnabled { op := &ebiten.DrawImageOptions{} op.GeoM.Translate(float64(e.Position.Value.X), float64(e.Position.Value.Y)) - if e.Selection.IsEnabled && e.Selection.Value.IsSelected { - op.GeoM.Translate(-10, -10) - screen.DrawImage(e.Selection.Value.SelectedImage, op) - } else { - screen.DrawImage(e.Image.Value, op) - } + screen.DrawImage(e.Image.Value, op) } } |
