Duplicate menu options in top Layer menu.

This commit is contained in:
Anna Rose 2024-07-29 22:30:13 -04:00
parent e1d2422106
commit 02e0c89562

View File

@ -4,7 +4,7 @@ local cmd = require "abase-commands"
function init(plugin) function init(plugin)
plugin:newCommand{ plugin:newCommand{
id="AnnabunchesASEExportSpritesheetAdvanced", id="ABASEExportSpritesheetAdvanced",
title="Export Spritesheet (Advanced)", title="Export Spritesheet (Advanced)",
group="file_export_1", group="file_export_1",
onclick=function() onclick=function()
@ -19,19 +19,56 @@ function init(plugin)
group="layer_popup_merge" group="layer_popup_merge"
} }
plugin:newCommand{ plugin:newMenuSeparator{
id="AnnabunchesASEToggleIgnoreLayer", group="layer_merge"
title="Ignore on Export", }
plugin:newMenuGroup{
id="abase_layer_settings",
title="Advanced Export",
group="layer_merge",
}
plugin:newMenuGroup{
id="abase_layer_settings_popup",
title="Advanced Export",
group="layer_popup_merge", group="layer_popup_merge",
}
plugin:newCommand{
id="ABASEToggleIgnoreLayer",
title="Toggle Ignore",
group="abase_layer_settings",
onclick=function() onclick=function()
cmd.ToggleIgnore() cmd.ToggleIgnore()
end end
} }
plugin:newCommand{ plugin:newCommand{
id="AnnabunchesASEToggleExportAsSprite", id="ABASEToggleIgnoreLayerPopup",
title="Export as Sprite", title="Toggle Ignore",
group="layer_popup_merge", group="abase_layer_settings_popup",
onclick=function()
cmd.ToggleIgnore()
end
}
plugin:newCommand{
id="ABASEToggleExportAsSprite",
title="Toggle Merge Group",
group="abase_layer_settings",
onclick=function()
cmd.ToggleExportAsSprite()
end,
onnenabled=function()
return app.layer.isGroup
end
}
plugin:newCommand{
id="ABASEToggleExportAsSpritePopup",
title="Toggle Merge Group",
group="abase_layer_settings_popup",
onclick=function() onclick=function()
cmd.ToggleExportAsSprite() cmd.ToggleExportAsSprite()
end, end,