- [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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user