Thread Tools Display Modes
08-31-06, 11:41 PM   #1
Simulator
A Defias Bandit
Join Date: Aug 2006
Posts: 2
How do you make a /command to reopen the form?

Hey all,

Right now my project is automatically opening and displaying as soon as a log into the game. I'm wondering, once I close this form, how can I make a /command to reopen it? I know to show a window its NameForm:Show();, but I am unsure as to how I would go about registering a /command to run that command. I tried doing some searches, and the only thing I could find that was remotely close didn't work.

Any help is appreciated!
  Reply With Quote
09-01-06, 04:45 AM   #2
Nulkris
A Cobalt Mageweaver
 
Nulkris's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 214
Code:
SLASH_ShowForm1 = "/showform"
SlashCmdList["ShowForm"] = function(cmd) NameForm:Show() end
where the text in red must be the same.
__________________
Nulkris - A80 Rogue - Proudmoore
(Also Drukris, Hamkris on Proudmoore; Hulkris on Jubei'Thos & Khaz Modan)
  Reply With Quote
09-01-06, 10:53 AM   #3
Simulator
A Defias Bandit
Join Date: Aug 2006
Posts: 2
Thank you very much!

For some reason the code I tried before was very similar to that but didn't work... this worked out great though!

Cheers
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » How do you make a /command to reopen the form?

Thread Tools
Display Modes

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