Rename sprite library.
This commit is contained in:
parent
86d4338e34
commit
d3874d5e83
|
@ -1,5 +1,5 @@
|
||||||
-- New commands to be executed via Aseprite menus / keyboard shortcuts
|
-- New commands to be executed via Aseprite menus / keyboard shortcuts
|
||||||
local sprt = require "abase-sprite"
|
local layerUtils = require "abase-layer"
|
||||||
|
|
||||||
local function ExportSpritesheetAdvanced()
|
local function ExportSpritesheetAdvanced()
|
||||||
if not app.sprite then
|
if not app.sprite then
|
||||||
|
@ -8,9 +8,9 @@ local function ExportSpritesheetAdvanced()
|
||||||
|
|
||||||
local spr = Sprite(app.sprite)
|
local spr = Sprite(app.sprite)
|
||||||
|
|
||||||
sprt.DeleteLayers(spr, spr.layers)
|
layerUtils.DeleteLayers(spr, spr.layers)
|
||||||
sprt.FlattenLayers(spr.layers)
|
layerUtils.FlattenLayers(spr.layers)
|
||||||
sprt.RevealLayers(spr.layers)
|
layerUtils.RevealLayers(spr.layers)
|
||||||
|
|
||||||
app.command.ExportSpriteSheet {
|
app.command.ExportSpriteSheet {
|
||||||
splitLayers = true
|
splitLayers = true
|
||||||
|
@ -26,7 +26,7 @@ local function ToggleIgnore()
|
||||||
else
|
else
|
||||||
layer.properties(extKey).ignored = true
|
layer.properties(extKey).ignored = true
|
||||||
end
|
end
|
||||||
sprt.SetColorFromRoot(layer)
|
layerUtils.SetColorFromRoot(layer)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function ToggleExportAsSprite()
|
local function ToggleExportAsSprite()
|
||||||
|
@ -36,7 +36,7 @@ local function ToggleExportAsSprite()
|
||||||
else
|
else
|
||||||
layer.properties(extKey).exportedAsSprite = true
|
layer.properties(extKey).exportedAsSprite = true
|
||||||
end
|
end
|
||||||
sprt.SetColorFromRoot(layer)
|
layerUtils.SetColorFromRoot(layer)
|
||||||
end
|
end
|
||||||
|
|
||||||
local export = {
|
local export = {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
local sprt = require "abase-sprite"
|
local layerUtils = require "abase-layer"
|
||||||
|
|
||||||
-- recolors all layers in the current sprite
|
-- recolors all layers in the current sprite
|
||||||
local function RecolorLayers()
|
local function RecolorLayers()
|
||||||
for i, layer in ipairs(app.sprite.layers) do
|
for i, layer in ipairs(app.sprite.layers) do
|
||||||
sprt.SetColor(layer)
|
layerUtils.SetColor(layer)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user