View Single Post
08-14-11, 05:19 AM   #2
Cripsii
A Black Drake
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 82
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
  Reply With Quote