kgPanels Help
I'm really new to this whole kgPanels thing (I got it today haha) was just wondering what the script would be to only show a texture when i have a target. I am trying to go for the infamous Kait:Auras glowing health orb look if that helps anybody. Have made a circle texture, just need the script/code to make it only appear when i target something, so that i dont have a random circle in the middle of my screen. Any help would be greatly appreciated, thanks!
|
I don't use kgPanels myself. But this may help you.
Quote:
|
Just parent it to your targets unit frame, then it will only show up when you have a target.
|
Here is some code not depending on any unitframe addon.
Onload: Code:
self:RegisterEvent('PLAYER_TARGET_CHANGED') Code:
self:SetShown(UnitExists('target')) |
well, yes, but parenting the kgPanel to the frame is 100x better...
|
All times are GMT -6. The time now is 12:54 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI