- [FIX] Les "formiguetes" en les seleccions no es veïen

- [FIX] El item seleccionat per a posar no es veia
- [NEW] Al arrastrar un item, també te "formiguetes"
This commit is contained in:
2026-03-10 11:19:23 +01:00
parent 8226236f07
commit f3d85fd8ae
2 changed files with 16 additions and 6 deletions

View File

@@ -575,8 +575,13 @@ sprites = {
if (app.update == editor.update) and (editor.item_selected or editor.layer~=LAYER_ITEMS) then ignore_selected = true end
for i,v in ipairs(sprites.list) do
if not ignore_selected and app.update == editor.update and mx>=v.pos.x and mx<=v.pos.x+v.size.w and my>=v.pos.y and my<=v.pos.y+v.size.h then
sprites.draw_sprite_selected(v)
editor.item_hovered = i
if editor.item_dragged == editor.item_hovered then
draw.mode(draw.PATTERN)
draw.pattern(editor.ants)
end
sprites.draw_sprite_selected(v)
draw.mode(draw.NORMAL)
else
if (not ignore_selected) or (not v.no_shadow) or (app.update ~= game.update) then
sprites.draw_sprite(v)
@@ -632,6 +637,7 @@ sprites = {
draw.surf(sx, sy, w, h, x, y, w, h, f)
draw.surf(sx, sy, w, h, x+1, y+1, w, h, f)
pal.subpal()
draw.mode(draw.NORMAL)
draw.surf(sx, sy, w, h, x, y, w, h, f)
end
}