Whenever I create panels with kgPanels, they don't seem to want to stay put exactly where I lock them. When I reload the ui, or the next time I log in, the panels pretty much always shift one of two pixels in a different direction, or expand or contract by a small margin. Is this normal behavior for kgPanels? Why would this occur? It is becomming very frustrating to set up an interface where pixel per pixel alignment matters.
I haven't been putting in values manually at all. I've just been resizing them via the corner icon according to the addon Align. Would kgPanels be using percentages by default? I'll try again entering the sizes manually, but the last time I tried that I was getting weird results
Hi there, Ok so i took a like 6 month break away from wow and obviously cant use eepanles 2, so i got this and started to have a play around with it.. and i must say i am very much impressed atm.
Though i have ideas to play around with my UI and i notice you can do the whole click on the frame scripts... now what i was wondering was if it is possible to do lets say i have a little frame i type in that frame (just for example) "Atlas loot" Then when i click on that frame its basically executing a macro for instance /atlasloot ? Or simular things for when i click the frame i can have it open my trade windows for example Leatherworking or alchemy etc..
Anybody able to help with this or point me in the direction where there is some scripts that i can look at.
local uc = UnitClass('target')
if ( uc == nil ) then
Pretty much as simple as it gets, right? Well, occasionally (but not always) onloading, the panel does not appear/hide as it should. I go into the config. Click "Accept" on the scripts again, and whoosh, it works again.
Hi! First of all thanks to kagaro for this great addon.
I've got a panel in which I placed Omen and Recount. The panel and both Addons are invisible. Omen is set to appear when I'm either in combat or in Party/Raid. Is it possible that when the Omen window turns visible that it shows the whole panel (and with that turn Recount to visible).
The other option would be that the panel with both addons should be visible on MouseOver and invisible on MouseOut (alternativley OnClick, but prefer MouseOver)?
In both cases Recount should be clickable due to reporting, changing Fights etc.
Unfortunately I'm a complete noob to scripting and syntax, so I'd appreciate if you could provide me some help on that.
Another panel request I have for my minimap: I'd like to show the panel with my minimap (use Chinchilla as minimapaddon) onclick. I try to use your sample-script, but I don't know what is the framename of the minimap or chinchilla addon to trigger.
local _, class = UnitClass("player");
if class == "WARRIOR" then
self:SetBackdropColor(0.95, 0.23, 0.23, 100)
elseif class == "PRIEST" then
self:SetBackdropColor(1, 0.96, 0.98, 100)
elseif class == "MAGE" then
self:SetBackdropColor(0.00, 1, 1, 100)
elseif class == "DRUID" then
self:SetBackdropColor(1, 0.49, 0.04, 100)
elseif class == "PALADIN" then
self:SetBackdropColor(0.92, 0.22, 0.46, 100)
elseif class == "HUNTER" then
self:SetBackdropColor(0.33, 0.86, 0.00, 100)
elseif class == "ROGUE" then
self:SetBackdropColor(1, 0.94, 0.16, 100)
elseif class == "SHAMAN" then
self:SetBackdropColor(0.13, 0.42, 1, 100)
elseif class == "WARLOCK" then
self:SetBackdropColor(0.36, 0.18, 1, 100)
elseif class == "DEATHKNIGHT" then
self:SetBackdropColor(0.77, 0.12, 0.23, 100)
Trying to use this to change a panel color based on class. Am I doing something wrong?
Well, first, you have 100 instead of 1 for alpha. ;) Also, I think I saw a function specifically for changing bg colors in the FAQ in-game when I was glancing through last night. Could try that (or I might be crazy :p). What problems are you having?
Hi all, im trying to add a texture with kgpanels and it seems to work, but the texture itslefs scales in a strange manner. I ve a tga file 512*512 and creating a 512-512 size panel, but the texture is much bigger than its intendent to be.
Here is a look:
The bottom is actual texture copied from TGA file in photoshop, while top texture is made with kgpanels (size 512-512)
Can anyone help any more with the panel changing color? I'm not really understanding why it doesn't work.
I've got exactly the same problem.Tried a variety of things to get it working but the panel just stays black. Set backdrops to none (have also tried gradient and solid), altered the alpha values and generally tried everything I can think of.
My code is pretty much the one from the FAQ page with the addition of a Death Knight entry. Any help would be greatly appreciated!
UPDATE: Tried a different approach to grabbing the colours for the frames, but still no luck.
local _, bclass = UnitClass('player')
local color = RAID_CLASS_COLORS[bclass]
self:SetBackdropColor(color.r, color.g, color.b, 0.80)
Strangely, if I change the 'self:SetBackdropColor(xxx)' to 'self:SetBackdropBorderColor(xxx)' then the frame border does indeed change correctly. So...have I got the correct command for the backdrop?