Code:
function RDXDK.ToggleDesktop()
if InCombatLockdown() then
RDX.printI(VFLI.i18n("Cannot lock/unlock desktop while in combat."));
return;
end
if InCombatLockdown() then
local curdesk = RDXDK.GetCurrentDesktop();
if curdesk then
RDXDK.ToggleDesktopTools(VFLFULLSCREEN_DIALOG, curdesk:_GetFrameProps("root"));
end
end
end
-- /rdx unlock
RDXPM.RegisterSlashCommand("unlock", RDXDK.UnlockDesktop);
Would this be correct, or... what would I add into a script for a lock/unlock toggle autoexec script?