KgPanels Script Help
Hullo there! I've finally found time to play again and I've begun my UI building project :P
I'm not sure if it's possible to do with a script, but I want a frame to hide when a unitframe is present. For instance, I want a frame that I have parented to the player frame to hide when there is a pet frame present. I'm working with gradients and this would help immensely. I just have no idea how to do this :o |
Quote:
For example: "OnShow" -- Lua Code:
"OnHide" -- Lua Code:
|
Pet Battle
If you want to hide a Texture while in a pet battle then this is gonna work.
OnLoad self:RegisterEvent("PET_BATTLE_OPENING_START") self:RegisterEvent("PET_BATTLE_CLOSE") OnEvent if event == "PET_BATTLE_OPENING_START" then self:Hide() elseif event == "PET_BATTLE_CLOSE" then self:Show() end |
All times are GMT -6. The time now is 10:07 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI