Category: Miscellaneous
Addon Information
Works with 3.3
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Author:
Version:
v1.36
Date:
02-07-2010 01:09 PM
Size:
215.33 Kb
Downloads:
48,421
Favorites:
486
MD5:
Pictures
Click to enlarge
sample panel + config menu
kgPanels   Updated less than 3 days ago!   Popular! (More than 5000 hits)
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
  Change Log - kgPanels
Toc update for 3.1, fix for kgPanelsConfig to be up to date toc

Updates for 3.2
  Archived Versions - kgPanels
File Name
Version
Size
Author
Date
v1.33
206kB
Kagaro
08-07-2009 07:51 AM
v1.32
206kB
Kagaro
07-28-2009 04:54 AM
v1.29
212kB
Kagaro
04-22-2009 11:30 AM
v1.27
204kB
Kagaro
03-28-2009 02:26 PM
v1.26
202kB
Kagaro
03-24-2009 10:02 AM
v1.24
201kB
Kagaro
03-21-2009 08:26 PM
v1.20
192kB
Kagaro
03-10-2009 01:59 PM
78841
31kB
Kagaro
07-22-2008 03:01 PM
  Comments - kgPanels
Post A Reply Comment Options
Old Today, 11:24 AM  
Kagaro
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 22
File comments: 76
Uploads: 5
Re: Re: Re: Scripting text display

Quote:
Originally posted by cormanthor
The odd part is, this media package adds itself to sharedMedia. It works with pretty much every other addon package (pMinimap, ForteXorcist, MSBT, etc.). I wasn't sure if I was just doing it wrong or what.
You know I wasnt paying enough attention

self.text:SetFont(kgPanels:FetchFont("Emblem"),10);
Kagaro is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old Today, 01:51 AM  
cormanthor
An Aku'mai Servant
 
cormanthor's Avatar

Forum posts: 36
File comments: 18
Uploads: 1
Re: Re: Scripting text display

Quote:
Originally posted by Kagaro
For fonts to be used in kgPanels, they need to add themselves to libsharedMedia
The odd part is, this media package adds itself to sharedMedia. It works with pretty much every other addon package (pMinimap, ForteXorcist, MSBT, etc.). I wasn't sure if I was just doing it wrong or what.
__________________
Some days it's just not worth chewing through the restraints...
cormanthor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old Yesterday, 09:21 PM  
Kagaro
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 22
File comments: 76
Uploads: 5
Re: Scripting text display

Quote:
Originally posted by cormanthor
I've been successful thus far in setting up a script to change the text field for a panel. My only hang up is the font face and size. I have Grizzly Shared Media installed and working everywhere else. But the font dropdown is greyed out on kgPanels.
Code:
self.text:SetFont("Emblem",10);
isn't working for me, and I am not sure how to use the SetPoint function as well.
For fonts to be used in kgPanels, they need to add themselves to libsharedMedia
Kagaro is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old Yesterday, 12:50 PM  
cormanthor
An Aku'mai Servant
 
cormanthor's Avatar

Forum posts: 36
File comments: 18
Uploads: 1
Scripting text display

I've been successful thus far in setting up a script to change the text field for a panel. My only hang up is the font face and size. I have Grizzly Shared Media installed and working everywhere else. But the font dropdown is greyed out on kgPanels.
Code:
self.text:SetFont("Emblem",10);
isn't working for me, and I am not sure how to use the SetPoint function as well.
__________________
Some days it's just not worth chewing through the restraints...
cormanthor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 02-07-2010, 03:36 PM  
Kagaro
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 22
File comments: 76
Uploads: 5
Quote:
Originally posted by xtoq
I am a newb too, but I'd imagine you'd have to tell it somewhere somehow that you want this to start on your focus. Just a thought though.
most likely cause you want
UNIT_SPELLCAST_START
UNIT_SPELLCAST_STOP
UNIT_SPELLCAST_INTERRUPTED

then you need to check arg1 (the unit) to see if it is the unit you want.
Kagaro is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 02-07-2010, 03:30 PM  
xtoq
A Fallenroot Satyr
 
xtoq's Avatar
Interface Author - Click to view interfaces

Forum posts: 25
File comments: 624
Uploads: 2
Quote:
Originally posted by Paloladin
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
I am a newb too, but I'd imagine you'd have to tell it somewhere somehow that you want this to start on your focus. Just a thought though.
__________________
There is absolutely no evidence to support the theory that life is serious.
xtoq is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 02-04-2010, 01:42 PM  
Warschild
A Murloc Raider

Forum posts: 7
File comments: 7
Uploads: 0
Smooth movement script?

Looking for help, but I warn you... not for the feint of heart!

Let's say I have a frame that I want to move depending on whether I'm in Orgrimmar or not. I know how to make the frame just jump right to the new location... but what I'm looking for is a way to make it kinda glide over. A smooth transition from one position to the other.

Does anyone have a script that I could tinker around with? Sadly, I can usually tinker enough to get things working but I'm not experienced enough to make things from scratch ........ yet.

Thanks.
Warschild is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-25-2010, 10:43 PM  
Paloladin
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
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   Edit/Delete Message Reply With Quote
Old 01-12-2010, 01:41 PM  
Finalflo
A Deviate Faerie Dragon

Forum posts: 16
File comments: 68
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 UI <<

Finalflo is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-01-2010, 06:52 AM  
Meldir
A Kobold Labourer

Forum posts: 0
File comments: 24
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   Edit/Delete Message Reply With Quote
Old 12-22-2009, 03:18 PM  
Kagaro
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 22
File comments: 76
Uploads: 5
Re: scripting-hide show

Quote:
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   Edit/Delete Message Reply With Quote
Old 12-15-2009, 02:15 PM  
coehl
A Fallenroot Satyr
 
coehl's Avatar

Forum posts: 25
File comments: 131
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 online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-12-2009, 11:03 PM  
PersephanieTwistingNether
A Murloc Raider
 
PersephanieTwistingNether's Avatar

Forum posts: 4
File comments: 1
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   Edit/Delete Message Reply With Quote
Old 11-29-2009, 09:07 AM  
Kagaro
A Fallenroot Satyr
Interface Author - Click to view interfaces

Forum posts: 22
File comments: 76
Uploads: 5
Quote:
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   Edit/Delete Message Reply With Quote
Old 11-28-2009, 02: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   Edit/Delete Message 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.




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.