Hiding Frames (party in this case)
Here is what I have so far:
lua Code:
What I am trying to figure out is how to toggle, if you will the party frame when the /pane command is used. I also tried working with hiding the UIParent, but then the pane would not show. Any thoughts? Am I going the wrong way with this? - Thanks! |
Use IsShown() rather than IsVisible()
|
Quote:
|
Toggling the show state of secure frames like unit frames and action bars can be problematic because if you do it in combat you will get errors.
Normally you would register the condition(s) you want them shown/hidden using RegisterStateDriver() and let the game look after them, like: Code:
RegisterStateDriver(PlayerFrame, "visibility", "[petbattle] hide; default") |
Hey, thanks!
|
All times are GMT -6. The time now is 06:29 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI