View Single Post
02-07-13, 10:53 AM   #2
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Maybe this will help, assuming you want to hide/show a frame based on combat status.

OnLoad script for a panel:
lua Code:
  1. self:RegisterEvent("PLAYER_REGEN_DISABLED")
  2. 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:
  1. if event == "PLAYER_REGEN_ENABLED" then
  2.   self:Hide()
  3. elseif event == "PLAYER_REGEN_DISABLED" then
  4.   self:Show()
  5. end

Also, I just googled and found this post on this forum:
Originally Posted by Taryble View Post
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

Last edited by ravagernl : 02-07-13 at 10:56 AM.
  Reply With Quote