Log in

View Full Version : How do you toggle the UI from a script?



Maz
05-16-2008, 12:35 PM
I have five keys to change my team lead. It's tied in to PiP so whenever I PiP someone into the main window, they become the lead.

I was wondering if it's possible to turn the UI on and off (as in Ctrl-Z) from a script. What I'd like to do is turn the UI on for a toon as it becomes my lead and turn it off for every other toon.

I'm sure it must be possible but I've turned up zilch so far.

Edit: I suspect I'm looking for:

/script InsertFrameNameHere:Hide();
and:

/script InsertFrameNameHere:Show();

Katharsis
05-16-2008, 12:51 PM
http://forums.worldofwarcraft.com/thread.html;jsessionid=D77B439482D6B007D7CC65C7669 0CFB3?topicId=330566221&sid=1

Maz
05-16-2008, 12:57 PM
I dunno. You find the answer. You feel all smug about it. You rush back here to tell everyone and...

Katharsis has beaten me to it :D

For the hard of clicking:

/run UIParent:Hide();
/run UIParent:Show();

Katharsis
05-16-2008, 01:58 PM
Hehe, I knew I had seen that in the WoWiki API before so I rushed off to find it but couldn't right away so I did the Google thing.