Duplicate menu options in top Layer menu.
This commit is contained in:
parent
e1d2422106
commit
02e0c89562
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user