mirror of https://github.com/LDDestroier/CC/
Added frame merging
This commit is contained in:
parent
ebff92f93c
commit
94a7cbc846
22
pain.lua
22
pain.lua
|
@ -2961,8 +2961,26 @@ local getInput = function() --gotta catch them all
|
|||
saveToUndoBuffer()
|
||||
end
|
||||
end
|
||||
end
|
||||
if not keysDown[keys.leftAlt] then
|
||||
elseif keysDown[keys.leftShift] then
|
||||
if #paintEncoded > 1 then
|
||||
if key == keys.equals and paintEncoded[frame+1] then --basically plus
|
||||
for a = 1, #paintEncoded[frame+1] do
|
||||
paintEncoded[frame][#paintEncoded[frame] + 1] = paintEncoded[frame+1][a]
|
||||
end
|
||||
table.remove(paintEncoded, frame+1)
|
||||
paintEncoded = clearAllRedundant(paintEncoded)
|
||||
barmsg = "Merged next frame."
|
||||
end
|
||||
if key == keys.minus and paintEncoded[frame-1] then
|
||||
for a = 1, #paintEncoded[frame+1] do
|
||||
paintEncoded[frame][#paintEncoded[frame] + 1] = paintEncoded[frame-1][a]
|
||||
end
|
||||
table.remove(paintEncoded, frame-1)
|
||||
paintEncoded = clearAllRedundant(paintEncoded)
|
||||
barmsg = "Merged previous frame."
|
||||
end
|
||||
end
|
||||
else
|
||||
if key == keys.equals then --basically 'plus'
|
||||
if renderBlittle then
|
||||
frame = frame + 1
|
||||
|
|
Loading…
Reference in New Issue