View Single Post
11-02-10, 03:34 PM   #33
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 680
Originally Posted by Grimsin View Post
"do stuff" in the slash command or the add function? if i do it in the slashcommand then i wont have any problems when it comes time to build the GUI. when i do the GUI and those commands are passed from lua rather then a slashcommand it will not always be a string correct? its only because im passing it through the slash command that everything is a string right?
Correct. A function call anywhere else passing true will be boolean (addon:AddMoveableFrame("GameMenuFrame", true) and slashes will be strings ("/gmove GameMenuFrame true" == true becomes a string)

If that makes any sense, lol. I'm off to take a much needed shower. Be back in a bit if you have any more questions.

EDIT: You posted as I did. Yes, that should theoretically work.
  Reply With Quote