Add new layer detection to keep colors mapped correctly.
This commit is contained in:
parent
ec8e131829
commit
0ed105d355
5 changed files with 78 additions and 49 deletions
14
abase-listeners.lua
Normal file
14
abase-listeners.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
local sprt = require "abase-sprite"
|
||||
|
||||
-- recolors all layers in the current sprite
|
||||
local function RecolorLayers()
|
||||
for i, layer in ipairs(app.sprite.layers) do
|
||||
sprt.setColor(layer)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
local export = {
|
||||
RecolorLayers = RecolorLayers,
|
||||
}
|
||||
return export
|
Loading…
Add table
Add a link
Reference in a new issue