Download
(312Kb)
Download
Updated: 03-06-13 05:57 AM
Pictures
File Info
Updated:03-06-13 05:57 AM
Created:unknown
Downloads:128,960
Favorites:619
MD5:

kgPanels  Popular! (More than 5000 hits)

Version: 1.15
by: Kagaro [More]

kgPanels, successor to eePanels. This mod allows you to place artwork in your UI. Please be sure to grab the config addon to be able to configure kgPanels. The menu is LOD so once created memory usage is minimal. This mod also allows you to attach scripts to events for each panel.

Please note the download also now includes kgPanels config as a single zip
Please see curse.com for the wiki pages
http://www.wowace.com/projects/kg-panels/pages/kg-panel-wiki

Version 1.5.3-beta
-- Compatability updates for Cataclysm
Version 1.5.2
-- Updated package for Ace3SharedMediaWidget changes.
Version 1.5
-- Fixes in embeds for disembedded usage
Version 1.4.0
-- Fixes for vanishing buttons with new Ace3
Version 1.39
-- Add libDualSpec support
Version 1.38
-- Fix for the FrameFidner function
Version 1.37
-- API changes for 3.3.3

Toc update for 3.1, fix for kgPanelsConfig to be up to date toc
Updates for 3.2
Post A Reply Comment Options
Unread 10-25-10, 02:58 PM  
Untippable
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Change background texture

I need to change the texture of a panel from OnEnter and OnLeave events: have seen self.bg:SetTexture("path") used but is not working for me. What is the usage for a texture file? The texture is registered as a working art library background.
Thank you
Report comment to moderator  
Reply With Quote
Unread 10-25-10, 01:30 PM  
Velran
A Murloc Raider
 
Velran's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 5
File comments: 5
Uploads: 2
Hi, I'm having trouble colouring the background of a panel to the class colour of my target. I've tried various codes from different forums but they don't seem to work. Would you be able to help me with this?

It would also be great if I could choose the exact colour of each class and target (e.g. neutral/hostile).

Thanks in advance
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 05:21 PM  
Kupotek
An Aku'mai Servant
 
Kupotek's Avatar
AddOn Author - Click to view AddOns

Forum posts: 38
File comments: 1201
Uploads: 2
My game shows KGpanels as out of date?
__________________
Panther UI | My Home on the Web
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 05:12 PM  
Kagaro
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 132
Uploads: 6
Originally posted by lilgulps
What the fuck man? I love the addon, but every single time you updated my colors change. Its getting real old to reset them all each update
Sorry I was trying hard to not affect peoples existing setup. there shouldnt be any more updates needed that affect colors/texutres
Report comment to moderator  
Reply With Quote
Unread 10-20-10, 06:51 AM  
isketch
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
I can not move the panels with the mouse. only with the help of the menu. colors, frames and backgrounds I can change. that's not the end but not comfortable, too.

What are the reasons?
Report comment to moderator  
Reply With Quote
Unread 10-19-10, 06:12 PM  
lilgulps
A Theradrim Guardian
 
lilgulps's Avatar
AddOn Author - Click to view AddOns

Forum posts: 62
File comments: 34
Uploads: 2
What the fuck man? I love the addon, but every single time you updated my colors change. Its getting real old to reset them all each update
Report comment to moderator  
Reply With Quote
Unread 10-17-10, 01:01 PM  
Doe
A Murloc Raider

Forum posts: 7
File comments: 15
Uploads: 0
No more backgrounds?

Since the cata update I cannot for the life of me get any sort of background to appear, I normally had a shaded grey/black background, but no matter what I do to the options, it is always completely transparent (basically the panels have turned into nothing more than borders).

Any ideas on what's going on?
Report comment to moderator  
Reply With Quote
Unread 10-16-10, 02:34 PM  
Orko
An Aku'mai Servant
 
Orko's Avatar
AddOn Author - Click to view AddOns

Forum posts: 35
File comments: 179
Uploads: 7
Script Error

I am using the script to add art to a frame when target is elite, rare or boss...After the patch I get this error and can not figure out why

Message: [string "Target_OnEvent"]:12: attempt to index global 'rareelite' (a nil value)
Time: 10/16/10 16:31:44
Count: 2
Stack: [string "Target_OnEvent"]:12: in function <[string "Target_OnEvent"]:1>
[C]: in function `CameraOrSelectOrMoveStop'
[string "CAMERAORSELECTORMOVE"]:4: in function <[string "CAMERAORSELECTORMOVE"]:1>



EDITED: Never mind I found the problem.. Was trying to hide a panel that was never created. Not sure why it was an issue before but all is well now
__________________

Do not go where the path may lead, go instead where there is no path -- and leave a trail.”
Last edited by Orko : 10-16-10 at 02:36 PM.
Report comment to moderator  
Reply With Quote
Unread 10-03-10, 01:00 PM  
eldavido
A Kobold Labourer

Forum posts: 1
File comments: 106
Uploads: 0
Edit: scratch the previous question, here's a new and improved one:

Hi folks,

I need some help. After spending about 40 hours now, researching, trying, and failing, I fall down on my knees and hope someone knows the answer.

What I'm trying to do, is script a KGpanel to be attached to the coolline cooldown bar. If the bar is shown, the KGpanel will move up in relation to it's placement within the UI, but if the coolline bar is inactive, the KGpanel "resets" to a previous placing.

To see what I mean, take a look at http://www.youtube.com/watch?v=l3f4F...eature=related

It's a bit hard to make out, but at around about the half-way point of the video, if you look at the players action bars, you can see a blue "arc" of colour. Once they start casting, this arc moves up, this is the effect I'm trying to re-create.

I'm sure it can be done, but I'll be buggered if I can figure out how :/

Halp?
Last edited by eldavido : 10-05-10 at 03:32 PM.
Report comment to moderator  
Reply With Quote
Unread 09-13-10, 06:38 PM  
yaldren
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Re: Functioning Grid Expansion Script

Originally posted by Sanat
OnLoad:
self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("UNIT_PET")
self:RegisterEvent("PARTY_MEMBERS_CHANGED")
self:RegisterEvent("PLAYER_TARGET_CHANGED")

self:RegisterEvent("UNIT_NAME_UPDATE")
self:RegisterEvent("UNIT_PORTRAIT_UPDATE")

self:RegisterEvent("ZONE_CHANGED_NEW_AREA")

OnEvent:
local pmems = GetNumPartyMembers()
local rmems = GetNumRaidMembers()
local height = 62.15
local pet = UnitExists("pet") or UnitExists("partypet1") or UnitExists("partypet2") or UnitExists("partypet3") or UnitExists("partypet4")

if rmems > 1 then
self:SetWidth(443.95)
self:Show()
elseif pmems < 1 then
self:Hide()
self:SetWidth(94.55)
elseif pmems == 1 then
self:SetWidth(181.9)
self:Show()
elseif pmems == 2 then
self:SetWidth(267.25)
self:Show()
elseif pmems == 3 then
self:SetWidth(355.6)
self:Show()
elseif pmems == 4 then
self:SetWidth(443.95)
self:Show()
end

if rmems < 5 and not pet then
height = 62.15
elseif (rmems > 5 and rmems <= 10) or pet then
height = 116.1
elseif (rmems > 10 and rmems <= 15) then
height = 174.05
elseif (rmems > 15 and rmems <= 20) or (rmems <= 15 and pet) then
height = 232
elseif (rmems > 20 and rmems <= 25) then
height = 289.95
end

self:SetHeight(height)

-- Right now I have grid set to show pets in a 10 man raid, and a party. That is where the pet call comes in.\
Enjoy
i used this script but i'm still seeing the kgpanel when i'm solo and not when i'm on a raid or party, do i have to add something else to the code? i want to see this kgpanel only when i'm on a raid or on a group, also, the size of the kgpanel does it matter here?

Thanks
Report comment to moderator  
Reply With Quote
Unread 09-08-10, 06:46 AM  
Sanat
A Kobold Labourer

Forum posts: 1
File comments: 2
Uploads: 0
Originally posted by Patramix
got a question,

how would i get a button i made glow a different color when i mouse over it?
You can use the OnEnter. And what do you mean by glow? You can change the panels BG color on the fly. But if you want something to really glow I am not sure if you can do that.
Report comment to moderator  
Reply With Quote
Unread 09-08-10, 06:44 AM  
Sanat
A Kobold Labourer

Forum posts: 1
File comments: 2
Uploads: 0
Functioning Grid Expansion Script

OnLoad:
self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("UNIT_PET")
self:RegisterEvent("PARTY_MEMBERS_CHANGED")
self:RegisterEvent("PLAYER_TARGET_CHANGED")

self:RegisterEvent("UNIT_NAME_UPDATE")
self:RegisterEvent("UNIT_PORTRAIT_UPDATE")

self:RegisterEvent("ZONE_CHANGED_NEW_AREA")

OnEvent:
local pmems = GetNumPartyMembers()
local rmems = GetNumRaidMembers()
local height = 62.15
local pet = UnitExists("pet") or UnitExists("partypet1") or UnitExists("partypet2") or UnitExists("partypet3") or UnitExists("partypet4")

if rmems > 1 then
self:SetWidth(443.95)
self:Show()
elseif pmems < 1 then
self:Hide()
self:SetWidth(94.55)
elseif pmems == 1 then
self:SetWidth(181.9)
self:Show()
elseif pmems == 2 then
self:SetWidth(267.25)
self:Show()
elseif pmems == 3 then
self:SetWidth(355.6)
self:Show()
elseif pmems == 4 then
self:SetWidth(443.95)
self:Show()
end

if rmems < 5 and not pet then
height = 62.15
elseif (rmems > 5 and rmems <= 10) or pet then
height = 116.1
elseif (rmems > 10 and rmems <= 15) then
height = 174.05
elseif (rmems > 15 and rmems <= 20) or (rmems <= 15 and pet) then
height = 232
elseif (rmems > 20 and rmems <= 25) then
height = 289.95
end

self:SetHeight(height)

-- Right now I have grid set to show pets in a 10 man raid, and a party. That is where the pet call comes in.\
Enjoy
Report comment to moderator  
Reply With Quote
Unread 08-10-10, 01:31 PM  
Patramix
A Kobold Labourer

Forum posts: 1
File comments: 13
Uploads: 0
got a question,

how would i get a button i made glow a different color when i mouse over it?
Report comment to moderator  
Reply With Quote
Unread 08-09-10, 04:52 PM  
cormanthor
A Warpwood Thunder Caller
 
cormanthor's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 97
File comments: 49
Uploads: 1
Gradient color scripting

I tried setting up a simple gradient background for my chat windows. All worked well until I decided that it should be class-colored like my other panels. No prob, right? I copy the code (snippet below):
Code:
local _, class = UnitClass("player");
	if class == "WARRIOR" then
        self.bg:SetVertexColor(0.95, 0.23, 0.23, self.bg:GetAlpha())
	elseif class == "PRIEST" then
...
Unfortunately, self.bg:SetVertexColor changes the whole concept of the panel back to solid, not gradient.

The question is, how do I change the background color and background gradient color separately? And is there anything I need to script for keeping the gradient setting because of this?
__________________
Some days it's just not worth chewing through the restraints...
Report comment to moderator  
Reply With Quote
Unread 08-02-10, 02:02 PM  
Stusteh
A Murloc Raider

Forum posts: 8
File comments: 3
Uploads: 0
I was wondering if there is a script out there that could switch bartender profiles or to just resize and reposition them.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.