advanced-spritesheet-export/advanced-spritesheet-export.lua

42 lines
940 B
Lua
Raw Normal View History

2024-07-30 01:25:14 +00:00
extKey = "annabunches/abase" -- this must come before we require 'abase-commands'
local cmd = require "abase-commands"
2024-07-22 23:01:26 +00:00
function init(plugin)
plugin:newCommand{
id="AnnabunchesASEExportSpritesheetAdvanced",
title="Export Spritesheet (Advanced)",
2024-07-30 01:25:14 +00:00
group="file_export_1",
onclick=function()
cmd.ExportSpritesheetAdvanced()
end,
onenabled=function()
return app.activeSprite ~= nil
end
}
plugin:newMenuSeparator{
group="layer_popup_merge"
2024-07-22 23:01:26 +00:00
}
plugin:newCommand{
id="AnnabunchesASEToggleIgnoreLayer",
title="Ignore on Export",
2024-07-30 01:25:14 +00:00
group="layer_popup_merge",
onclick=function()
cmd.ToggleIgnore()
end
2024-07-22 23:01:26 +00:00
}
plugin:newCommand{
id="AnnabunchesASEToggleExportAsSprite",
title="Export as Sprite",
2024-07-30 01:25:14 +00:00
group="layer_popup_merge",
onclick=function()
cmd.ToggleExportAsSprite()
end,
onnenabled=function()
return app.layer.isGroup
2024-07-22 23:01:26 +00:00
end
}
2024-07-30 01:25:14 +00:00
end