Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-14-11, 04:52 AM   #1
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
Lock / Unlock Desktop Slash

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?
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **
  Reply With Quote
 

WoWInterface » Featured Projects » OpenRDX » OpenRDX Support » OpenRDX: Feature Requests » Lock / Unlock Desktop Slash


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off