Rename sprite library.

This commit is contained in:
Anna Rose Wiggins 2024-07-30 19:55:01 -04:00 committed by annabunches
parent 3f4237c19f
commit 95c9c999fc
3 changed files with 8 additions and 8 deletions

View File

@ -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 = {

View File

@ -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