Originally Posted by Grimsin
"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.