diff --git a/abase-commands.lua b/abase-commands.lua index b89745e..cc1adbe 100644 --- a/abase-commands.lua +++ b/abase-commands.lua @@ -1,5 +1,5 @@ -- New commands to be executed via Aseprite menus / keyboard shortcuts -local sprt = require "abase-sprite" +local layerUtils = require "abase-layer" local function ExportSpritesheetAdvanced() if not app.sprite then @@ -8,9 +8,9 @@ local function ExportSpritesheetAdvanced() local spr = Sprite(app.sprite) - sprt.DeleteLayers(spr, spr.layers) - sprt.FlattenLayers(spr.layers) - sprt.RevealLayers(spr.layers) + layerUtils.DeleteLayers(spr, spr.layers) + layerUtils.FlattenLayers(spr.layers) + layerUtils.RevealLayers(spr.layers) app.command.ExportSpriteSheet { splitLayers = true @@ -26,7 +26,7 @@ local function ToggleIgnore() else layer.properties(extKey).ignored = true end - sprt.SetColorFromRoot(layer) + layerUtils.SetColorFromRoot(layer) end local function ToggleExportAsSprite() @@ -36,7 +36,7 @@ local function ToggleExportAsSprite() else layer.properties(extKey).exportedAsSprite = true end - sprt.SetColorFromRoot(layer) + layerUtils.SetColorFromRoot(layer) end local export = { diff --git a/abase-sprite.lua b/abase-layer.lua similarity index 100% rename from abase-sprite.lua rename to abase-layer.lua diff --git a/abase-listeners.lua b/abase-listeners.lua index 29c093c..17f8be2 100644 --- a/abase-listeners.lua +++ b/abase-listeners.lua @@ -1,9 +1,9 @@ -local sprt = require "abase-sprite" +local layerUtils = require "abase-layer" -- recolors all layers in the current sprite local function RecolorLayers() for i, layer in ipairs(app.sprite.layers) do - sprt.SetColor(layer) + layerUtils.SetColor(layer) end end