Hello !
After some test:
put this script in autoexec script file and enable the autoexec package.
Code:
function RDXDK.ToggleDesktop()
if InCombatLockdown() then
RDX.printI(VFLI.i18n("Cannot lock/unlock desktop while in combat."));
return;
end
if not InCombatLockdown() then
local curdesk = RDXDK.GetCurrentDesktop();
if curdesk then
RDXDK.ToggleDesktopTools(VFLFULLSCREEN_DIALOG, curdesk:_GetFrameProps("root"));
end
end
end
-- /rdx toggle
RDXPM.RegisterSlashCommand("toggle", RDXDK.ToggleDesktop);
This code work!
just type "/rdx toggle"
if the desktop is lock, it's became unlocked and if is unlocked, it's became locked.
If you're in combat, nothing and pop the msg in info frame.
You can create a macro "/rdx toggle" if you click the macro the desktop unlock. But for locking you have ti type the macro in chat (the action bar is not usable when the desktop is unlock..)