local threatpct = UnitDetailedThreatSituation("player", "target")
if threatpct and threatpct > 0 then
if event == "PLAYER_REGEN_ENABLED" then
elseif event == "PLAYER_REGEN_DISABLED" then
Ok, so far it works but when I'm tanking a mob and pull another one the panels isn't showing on mob2, first if i change the target and get back on mob2...
well, this code is my first try to make a kgpanel script, if someone have a idea to make this scritp more functional, please... teach me :)
ah, i need another script too :)
Need a script to show me the PvP Icons (alliance,horde,ffa) if my target has an eg. pvp status, any idea? EDIT: ok, i have done this... ;)
I had give up on this after several days of failures, thanks to you, I can do it now :) !
Like you I would be pleased to see others scripts, as wowwiki isn't very clear either precise (for a novice). I have the purpose to write a french tutorial so I need to learn about a lot of examples.
So, to kill two birds with one stone (Or "zwei Fliegen mit einer Klappe schlagen" :D), I did a script for On/Off bouton:
local B_My_Buffon = kgPanels:FetchFrame("B_My_Buffoff")
local B_My_Buffon = SBFFrame6
local B_My_Buffoff = kgPanels:FetchFrame("B_My_Buffon")
local B_My_Buffoff = SBFFrame6
The On/Off fonction works but, as usual, something is wrong: In combat and in group, the buff's frame is always reappearing. So if someone knows how I can fix that....
Hello, I currently have my borders class colored using
local _, class = UnitClass("player");
if class == "WARRIOR" then
self:SetBackdropBorderColor(0.95, 0.23, 0.23, 0.50)
elseif class == "PRIEST" then
self:SetBackdropBorderColor(1, 0.96, 0.98, 0.50)
elseif class == "MAGE" then
self:SetBackdropBorderColor(0.00, 1, 1, 0.50)
elseif class == "DRUID" then
self:SetBackdropBorderColor(1, 0.49, 0.04, 0.50)
elseif class == "PALADIN" then
self:SetBackdropBorderColor(0.92, 0.22, 0.46, 0.50)
elseif class == "HUNTER" then
self:SetBackdropBorderColor(0.33, 0.86, 0.00, 0.50)
elseif class == "ROGUE" then
self:SetBackdropBorderColor(1, 0.94, 0.16, 0.50)
elseif class == "SHAMAN" then
self:SetBackdropBorderColor(0.13, 0.42, 1, 0.50)
elseif class == "WARLOCK" then
self:SetBackdropBorderColor(0.36, 0.18, 1, 0.50)
elseif class == "DEATHKNIGHT" then
self:SetBackdropBorderColor(0.77, 0.12, 0.23, 0.50)
I would like them to change colors if that unit has aggro to red. (player, tar, tot, and Party 1-4)
First off, thanks for the add on, great work.
Second, is there any way to allow text rotating?
Basicly I just want my text on the hide/show recount bar to be vertical instead of horizontal. Have I missed something? And if not, could the option be easily implemented?
And there allways seems to be a few frames who's details don't get saved when switching profile/openning a profile on a new charcter. Any way to fix this?
Oh no....what's happened!!?!?! Just updated KGPanels via Curse and all my panels have been replaced by a large white block covering about 1 third of the bottom of the screen!!
I'm no expert with KGPanels and originally got it as part of a UI package most of which I have now replaced. I did at some time modify the artwork for my panels, but it's so long I can't remember how I got it all to work.
KGPanels does seem to be ignoring the artwork loaded into the library, and also seems to have lost all my border graphics and scripts.
Please any advice what to do to get my panels back would be extremely greatly appreciated.
My Prob is that KGP does not save Profiles for each Profil is created.I have createt Profil1 with some Panels. Then i created Profil two and copied the settings from Profil 1. So far...so good..now when ich change one Panel in this Profil2, the same Panels has changed then in Profil 1. I´ve uninstalled KGP and installed new.But its always the same. Can somebody help me?
it saves panel layouts globally.
Each profile, only specifies which layout to load. so if your copying the same layout your are editing the same layout. The flexability is you can create all your layouts on 1 toon, then on another toon only switch the layout in use for that toon.