View Single Post
08-27-12, 06:40 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by zork View Post
Using the statedriver and calling :Show() in dostuff seems to be unsecure aswell. Or is it allowed to call :Show() / :Hide() inside of the statedriver functions that you define manually?
SetParent is in the same category of protected functions as Show, Hide, SetPoint, SetWidth, SetHeight, etc. -- you cannot call any of them insecurely in combat. At any time, if you can use SetParent, you can also use Show or Hide. If you can't use Show or Hide at a particular time, you can't use SetParent either.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote