Thread Tools Display Modes
02-04-13, 03:38 PM   #1
Rusken
A Theradrim Guardian
AddOn Compiler - Click to view compilations
Join Date: Dec 2009
Posts: 61
Skada, can i change anything in the lua so it's only displayed in combat?

As the title says, i have made a couple of KGpanels for skada and since each individual bar don't have a "name" when doing a ./framestack i had to anchor and parent them to the entire skada window.
So now there's 3 borders visible all the time except when i am in combat and people dps/heal and there is no option for this in skada config, the only thing i can select is "hide when alone".
Sure that option solves it when im alone but when im in a party or raid those 3 kgpanels will be there even if no one dps/heal.
So, is there any coding expert out there that could help me with this? Or could i get the name of those 3 individual bars in some other way then /framestack?
If so, i could just anchor/parent the panels to them.
Thanks in advance<3

A screenshot to show what i mean ->

  Reply With Quote
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

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Skada, can i change anything in the lua so it's only displayed in combat?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off