Download
(312Kb)
Download
Updated: 03-06-13 05:57 AM
Pictures
File Info
Updated:03-06-13 05:57 AM
Created:unknown
Downloads:129,177
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 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.
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!
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: 6
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.
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?
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())
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.
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?
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: 6
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.
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.
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: 1
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.
Report comment to moderator  
Reply With Quote
Unread 10-12-09, 05:14 PM  
Khirsanth
A Defias Bandit
 
Khirsanth's Avatar

Forum posts: 3
File comments: 10
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.
Report comment to moderator  
Reply With Quote
Unread 10-08-09, 07:01 PM  
Fraktyl
A Murloc Raider

Forum posts: 6
File comments: 12
Uploads: 0
[-edit-]

I just wanted to mention that it wasn't a problem with either KGpanels, or SharedMedia. I was just looking in the Art section and never saw anything so never attempted to actually create a panel.

Well, decided to go ahead and see what would happen and everything in my SharedMedia folder is being seen. So it was just user error completely.

Thanks again for the help, and for the addon.
Last edited by Fraktyl : 10-10-09 at 04:08 PM.
Report comment to moderator  
Reply With Quote
Unread 10-08-09, 04:19 PM  
Kagaro
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 132
Uploads: 6
Re: SharedMedia?

Originally posted by Fraktyl
For some reason I can't use my wowace account, and Blizzard is having forum issues with bnet accounts... anyways.

I can't seem to get SharedMedia support working. I have both installed, and all my other addons can use SharedMedia, but Kgpanels is reporting no art installed.

I'm using the SharedMedia_MyMedia directory also but everything else can see all the textures there. Is there some setting I'm missing to get it to see all the art I've got there?

Thanks
you need LibSharedMedia3 instaleld to find shared media, the old SharedMedia is supported via LibSharedMedia3
Report comment to moderator  
Reply With Quote
Unread 10-08-09, 04:10 PM  
Fraktyl
A Murloc Raider

Forum posts: 6
File comments: 12
Uploads: 0
SharedMedia?

For some reason I can't use my wowace account, and Blizzard is having forum issues with bnet accounts... anyways.

I can't seem to get SharedMedia support working. I have both installed, and all my other addons can use SharedMedia, but Kgpanels is reporting no art installed.

I'm using the SharedMedia_MyMedia directory also but everything else can see all the textures there. Is there some setting I'm missing to get it to see all the art I've got there?

Thanks
Report comment to moderator  
Reply With Quote
Unread 09-25-09, 01:10 PM  
Kagaro
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 132
Uploads: 6
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=)
Check ont he wowace forums, there is a big thread for kgPanels with tons of sample scripts.
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.