View Single Post
08-27-12, 02:12 PM   #4
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Yes I'm using that for my actionbars already. Just checking the options.

The thing is ... you can't just show the frame because it may have been hidden. Not sure if oUF will hide the frame by itself if you get out of petbattle and show it.

Code:
RegisterStateDriver(frame, "visibility", "[petbattle] hide; [vehicleui] hide; show")
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?

What I like about SetParent is that you don't have to care about the show/hide status of the frame.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote