Maybe this will help, assuming you want to hide/show a frame based on combat status.
OnLoad script for a panel:
lua Code:
self:RegisterEvent("PLAYER_REGEN_DISABLED")
self:RegisterEvent("PLAYER_REGEN_ENABLED")
PLAYER_REGEN_DISABLED triggers when you go into combat, PLAYER_REGEN_ENABLED triggers when you exit combat.
OnEvent script for a panel:
lua Code:
if event == "PLAYER_REGEN_ENABLED" then
self:Hide()
elseif event == "PLAYER_REGEN_DISABLED" then
self:Show()
end
Also, I just googled and found this post on this forum:
Originally Posted by Taryble
In the "Parent" box at the bottom of the main setup for the panel, just set it to parent to SkadaBarWindowSkada and you're done.
(for the default setup - if you're using 2 skada windows and want it to show up with a window with a different name, it's SkadaBarWindow<windowname> - ie, a window called Test is SkadaBarWindowTest.)
|
http://lmgtfy.com/?q=skada+kgpanels