hello!
What do you do?
A slash command for lock or unlock desktop?
/rdx unlock (for unlock dsk)
/rdx lock (for lock dsk)
I don't understand why you want to do this.
for the script:
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 unlock
RDXPM.RegisterSlashCommand("unlock", RDXDK.UnlockDesktop);
Explain your goal for this script and I'll showing how to