Download
(312 Kb)
Download
Updated: 03-06-13 05:57 AM
Pictures
File Info
Compatibility:
Thunder Isle (5.2)
Landfall (5.1)
Mists of Pandaria (5.0.4)
Updated:03-06-13 05:57 AM
Created:unknown
Downloads:111,883
Favorites:639
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
Archived Files (14)
File Name
Version
Size
Author
Date
v1.5.4.4
288kB
Kagaro
12-05-10 12:52 PM
v1.5.3-beta
227kB
Kagaro
09-04-10 03:25 PM
v1.5.2
226kB
Kagaro
07-20-10 05:32 AM
v1.38
218kB
Kagaro
03-25-10 08:04 AM
v1.37
216kB
Kagaro
03-23-10 08:44 AM
v1.36
215kB
Kagaro
02-07-10 12:09 PM
v1.33
206kB
Kagaro
08-07-09 05:51 AM
v1.32
206kB
Kagaro
07-28-09 02:54 AM
v1.29
212kB
Kagaro
04-22-09 09:30 AM
v1.27
204kB
Kagaro
03-28-09 12:26 PM
v1.26
202kB
Kagaro
03-24-09 08:02 AM
v1.24
201kB
Kagaro
03-21-09 06:26 PM
v1.20
192kB
Kagaro
03-10-09 11:59 AM
78841
31kB
Kagaro
07-22-08 01:01 PM


Post A Reply Comment Options
Unread 10-12-09, 05:14 PM  
Khirsanth
A Defias Bandit
 
Khirsanth's Avatar

Forum posts: 3
File comments: 12
Uploads: 0
onclick

Greetings, I am trying to have a few custom frames on my screen that when clicked perform an action, ie a spel l or something. There was a youtube video but it was so grainy I couldn't read what he was typing lol.
For example with a typical frame what precisely do I type in OnClick to make a spell cast? I have intercept mouse clicks enabled.
I've searched all over the web but I can't get the syntax correct for the damnable thing.
Khirsanth is offline Report comment to moderator  
Reply With Quote
Unread 10-29-09, 04:11 PM  
iSylvir
A Cyclonian
 
iSylvir's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 47
File comments: 15
Uploads: 2
I have a question/request.

If this is possible, its a question. If it's not, its a request.

Im requesting/questioning that it be made possible to automatically set specific frame's colors to the class color corresponding with the class your playing. This would be fantastic for UI's such as mine, which feature your panels as a passive graphic.
Last edited by iSylvir : 11-07-09 at 08:51 AM.
iSylvir is offline Report comment to moderator  
Reply With Quote
Unread 10-30-09, 01:44 PM  
Smiley82
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
I have a big Problem here.

The Addon doesnt save my profiles....

Everytime i create new panels/layout for my Twinks, they overwrite all the other Profils. So, i cant make different profils?

This is really frustrating.

Pls help


EDITH:


Ore do i have to mess around with the layouts? maybe this is the answer^^

EDITH 2:

Yep, the layouts, sry^^

Fixed
Last edited by Smiley82 : 10-30-09 at 02:10 PM.
Smiley82 is offline Report comment to moderator  
Reply With Quote
Unread 11-02-09, 11:50 AM  
Kagaro
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 132
Uploads: 9
Re: onclick

Originally posted by Khirsanth
Greetings, I am trying to have a few custom frames on my screen that when clicked perform an action, ie a spel l or something. There was a youtube video but it was so grainy I couldn't read what he was typing lol.
For example with a typical frame what precisely do I type in OnClick to make a spell cast? I have intercept mouse clicks enabled.
I've searched all over the web but I can't get the syntax correct for the damnable thing.
You cant cast a spell with a panel, it requires a secure button to do that and kgPanels are not secure buttons. IF you are really adevntrous you could create a secure button in your onload code and do all the secure header stuff but its pretty complicated for a novice to do as you have to define all headers and make the button the actual click spot and not the panel.
Kagaro is offline Report comment to moderator  
Reply With Quote
Unread 11-06-09, 11:46 PM  
Gaetano
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Trying to do activation of a panel background on spell use

I'm trying to activate one of my panels with a particular background based on a characters spellcast. For instance I have an entire UI set up for my Druid character but I want to change the background of an activate panel to contain a graphic of a bear, boomkin, etc depending on what form I am in.

Conversely I want to be able to change panel backgrounds based on a certain spell being cast, whether I need to use spellid or what I don't know.

Any idea where I can find some sample code for this or I can get the general idea? I can do a partial work around for this using Power Auras using custom art textures (512x512 max) but only for spells considered buffs, aka Tree of Life, Bear Form, etc. If I wanted to change based on Warlock pet, mounted status, etc I am unable to do it.

Any thoughts?
Gaetano is offline Report comment to moderator  
Reply With Quote
Unread 11-12-09, 01:26 PM  
norpsa
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Re: pet bar

Originally posted by drgnwlf
I am having some trouble with the pet panel.

I am trying to get a scrpit so that it only shows when my pet is out.

I looked around and could not find anything on this.

Please help=)
you don't need a script. All you need to do is make your Pet Frame the Parent Frame of the panel you are setting up.

In order to find the Parent Frame ID copy this script and make it an ingame macro

Code:
/run ChatFrame1:AddMessage(GetMouseFocus():GetName())
Then simply hit that macro while you mouse over any frame / button and it will give you the frame id.

After that you copy the name exactly as it appears (case sensitive) and throw it in ur Parent Frame / Anchor Frame and you are set.
norpsa is offline Report comment to moderator  
Reply With Quote
Unread 11-12-09, 01:26 PM  
norpsa
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Originally posted by pinner
I'm using Pitbull for my unit frames and KGPanels to create my UI.

I have a border for both my target and target's target but I want them to disappear when I deselect someone. How can I figure out my Parent Frame name?
Code:
/run ChatFrame1:AddMessage(GetMouseFocus():GetName())
norpsa is offline Report comment to moderator  
Reply With Quote
Unread 11-28-09, 01:55 AM  
vl_ovcharov
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Hi
Sorry for the probably stupid question, but I'm totally new to this
I'm trying to bind the SLDataText elements to a kg panel, giving them
"kgPanel1" as a parent frame. Unfortunately every time I add new panels, the numbers mix, and it would be very time consuming to refresh parent frames manually every time. I tried using the kgpanel name as a parent frame, but
then I get a message "Couldn't find a region named xxxx".
Is there a way to use the panel names instead of "kgPanelxxx"?
Or is it just a SLDT bug?
vl_ovcharov is offline Report comment to moderator  
Reply With Quote
Unread 11-29-09, 08:07 AM  
Kagaro
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 132
Uploads: 9
Originally posted by vl_ovcharov
Hi
Sorry for the probably stupid question, but I'm totally new to this
I'm trying to bind the SLDataText elements to a kg panel, giving them
"kgPanel1" as a parent frame. Unfortunately every time I add new panels, the numbers mix, and it would be very time consuming to refresh parent frames manually every time. I tried using the kgpanel name as a parent frame, but
then I get a message "Couldn't find a region named xxxx".
Is there a way to use the panel names instead of "kgPanelxxx"?
Or is it just a SLDT bug?
its not a bug with sldt, kgpanels recycles panels, I do provide an API so other addons can get the correct panel id at any given time. What you need todo is this:

in your panel, add a script to reparent the sdlt data to your panel. add an onload script and set SDLT as a script dependency so the script doesnt execute till SDLT loads.
Kagaro is offline Report comment to moderator  
Reply With Quote
Unread 12-12-09, 10:03 PM  
PersephanieTwistingNether
A Murloc Raider
 
PersephanieTwistingNether's Avatar

Forum posts: 6
File comments: 3
Uploads: 0
creating panel

hi I am new to your addon. Thanks to a great How to Youtube video i am doing wonders i never thought possable but i did hit an instant stop in my creations. An error message came up when i tried to create an Active Panel. It will not let me use the default panel either. Dont know whats rong please help. Thanks!
PersephanieTwistingNether is offline Report comment to moderator  
Reply With Quote
Unread 12-15-09, 01:15 PM  
coehl
A Fallenroot Satyr
 
coehl's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 26
File comments: 1
Uploads: 2
scripting-hide show

I posted this in the forums also, but wasn't getting a lot of results there.
--------------------------------------
Hi there, I have a couple questions.

I have a tabbing system in my UI, so you can select a "meters" tab to view your meters, and a "bars" tab to view extra action bars, etc. Let's look at a sample code:
SkadaBarWindowthreat:Show()
SkadaBarWindowSkada:Show()
BT4BarBagBar:Hide()
BT4BarStanceBar:Hide()
BT4Bar5:Hide()
BT4Bar6:Hide()
BT4Bar7:Hide()

This will work so long as the two specific windows in Skada exist and the specific bars in bartender are enabled (and both addons are available). My system's a lot more complicated than this, so there are a lot of elements, all of which NEED to exist (be turned on/installed) or the scripts lose their references and start giving me the brown lua crown.

I know I can resolve this with if statments that check for existence of the objects first. What kind of syntax do I use?

I tried something like this

if SkadaBarWindowThreat:Exists() then
SkadaBarWindowthreat:Show()
if SkadaBarWindowSkada:Exists() then
SkadaBarWindowthreat:Show()
end

--------------------------------------

Also, I have some buttons that I want to simply toggle some elements. I'm using the OnClick event I thought it would be straight forward, but what it does is it hides/shows the element for as long as the mouse button is held. Once released, it reverts back to what it was in the first place.

Here's the script I use to attempt it

if BT4Bar3:IsVisible() then
BT4Bar3:Hide()
else
BT4Bar3:Show()
end

-------------------------------------
Lastly, I cannot find anything that documents how to invoke a command or macro. Is this because of the whole "secure actions" issue?
I want a panel that I can click that invokes the
/grid standby
command. Otherwise, if I just hide Grid, Grid will come back up eventually probably due to refreshing of itself.


Any help that I can get on any of these three issues is most appreciated.
coehl is offline Report comment to moderator  
Reply With Quote
Unread 12-22-09, 02:18 PM  
Kagaro
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 132
Uploads: 9
Re: scripting-hide show

Originally posted by coehl
I posted this in the forums also, but wasn't getting a lot of results there.
--------------------------------------
Hi there, I have a couple questions.

I have a tabbing system in my UI, so you can select a "meters" tab to view your meters, and a "bars" tab to view extra action bars, etc. Let's look at a sample code:
SkadaBarWindowthreat:Show()
SkadaBarWindowSkada:Show()
BT4BarBagBar:Hide()
BT4BarStanceBar:Hide()
BT4Bar5:Hide()
BT4Bar6:Hide()
BT4Bar7:Hide()

This will work so long as the two specific windows in Skada exist and the specific bars in bartender are enabled (and both addons are available). My system's a lot more complicated than this, so there are a lot of elements, all of which NEED to exist (be turned on/installed) or the scripts lose their references and start giving me the brown lua crown.

I know I can resolve this with if statments that check for existence of the objects first. What kind of syntax do I use?

I tried something like this

if SkadaBarWindowThreat:Exists() then
SkadaBarWindowthreat:Show()
if SkadaBarWindowSkada:Exists() then
SkadaBarWindowthreat:Show()
end

--------------------------------------

Also, I have some buttons that I want to simply toggle some elements. I'm using the OnClick event I thought it would be straight forward, but what it does is it hides/shows the element for as long as the mouse button is held. Once released, it reverts back to what it was in the first place.

Here's the script I use to attempt it

if BT4Bar3:IsVisible() then
BT4Bar3:Hide()
else
BT4Bar3:Show()
end

-------------------------------------
Lastly, I cannot find anything that documents how to invoke a command or macro. Is this because of the whole "secure actions" issue?
I want a panel that I can click that invokes the
/grid standby
command. Otherwise, if I just hide Grid, Grid will come back up eventually probably due to refreshing of itself.


Any help that I can get on any of these three issues is most appreciated.
You can do
Code:
if SkadaBarWindowThreat then
   -- do stuff to that bar, its a global variable so if skada didnt load/not loaded
   -- you check for it here
end
For your click actions
Panels didnt have a click handler just mouse pressed and released
there is a vairable that is set to tru so you can react appropiatly

i.e. if pressed
OR
if released

Sorry but that was done so you could do not only OnEnter andOnLeave
but make choices based on click state.
Code:
if BT4Bar3:IsVisible() and presssed then
BT4Bar3:Hide()
else if pressed then
BT4Bar3:Show()
end
And for third, yes thats securebutton code stuff, if you really want in your onLoad, you could create a Securebutton, parent it to your panel and plac eit above the panel itself and add a secureclick action.
Kagaro is offline Report comment to moderator  
Reply With Quote
Unread 01-01-10, 05:52 AM  
Meldir
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 20
Uploads: 1
i tried many things now but get nothing to work

my problem:
I want to have a real square panel with a squared border, i think its very simple, but i fail this so hard ... the standard blizzard tooltip has rounded edges and i want some nice borders like this:

http://s.wowinterface.com/preview/pvw34951.jpg

pls help me, i know question is not that hard but how i said ... I FAIL
Meldir is offline Report comment to moderator  
Reply With Quote
Unread 01-12-10, 12:41 PM  
Finalflo
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations

Forum posts: 16
File comments: 149
Uploads: 4
Hy,

I would like to make a Panel auto/hide when mouse is not over.

I think it has to do with OnEnter and OnLeave but I don't know what to put in script.

Thanks !
__________________

Finalflo is offline Report comment to moderator  
Reply With Quote
Unread 01-25-10, 09:43 PM  
Paloladin
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 13
Uploads: 1
I'm trying to show a panel when my focus target casts a spell and then hide it when the spell ends. I have the following in the scripts for the panel Im trying to get to do this but it doesnt do anything at all. Complete newb at scripting can anyone help me out with this? Id appreciate it immensely.

OnLoad Section:
self:RegisterEvent("SPELLCAST_START")
self:RegisterEvent("SPELLCAST_STOP")
self:RegisterEvent("SPELLCAST_INTERRUPTED")
self:Hide()

OnEvent Section:
if event == "SPELLCAST_START" then
self:Show()
elseif event == "SPELLCAST_STOP" then
self:Hide()
elseif event =="SPELLCAST_INTERRUPTED" then
self:Hide()
end
Paloladin is offline 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.