Create panels for customizing your UI, sucessor to eePanels

Wiki and FAQ

Sample Scripts

OnClick now provides a pressed and released variable you can check for.

if pressed then
  -- do mouse down actions
elseif released then
  -- do mouse up actions

This means your script will get called twice when someone clicks the panel.

Here is a youtube link to a video Tutorial

Ive created an Example Texture Pack.

This example pack is just a template. If you want to use it as a storage spot for your art, look at the read me file for directions on usage.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of johnsmithblu johnsmithblu Jun 08, 2009 at 10:46 UTC - 0 likes

    /print GetMouseFocus():GetName()

    DEAD USEFUL when trying to attach panels to (sorry for my lack of terminology) "things".

  • Avatar of photekk photekk Jun 03, 2009 at 01:21 UTC - 0 likes

    Could you guys help me with a simple script for kgPanels. I want to create a panel to "frame" the party name plates/portraits for when I'm in a group. I saw in your example scripts that you have this, however it isn't working for me (I copied and pasted exactly as it was posted):

    Adjusting Panels based on Raid or 5 Main party In each Panel set the OnLoad script

    self:RegisterEvent("PLAYER_ENTERING_WORLD") self:RegisterEvent("PARTY_MEMBERS_CHANGED") self:RegisterEvent("RAID_ROSTER_UPDATE")

    Then in each Panel OnEvent script:

    local pmems = GetNumPartyMembers() local rmems = GetNumRaidMembers() if (pmems < 1 and rmems < 1) or (pmems > 0 and pmems < 6 and rmems < 6) then self:Hide() else self:Show() end

    Has anyone gotten this to work? Are there any other modifications I have to use with this script for it to work - all I did was create a new panel, entered in the OnLoad and OnEvent script and tested it by entering a party - no panel :(


  • Avatar of kagaro kagaro May 25, 2009 at 15:24 UTC - 0 likes

    to detect in your in a raid or party

    local inRaid = UnitInRaid("player")
    local inParty = UnitInParty("player")
    if inRaid and GetNumRaidMembers() > 9 then
       -- in 10 man raid
    elseif inRaid and GetNumRaidMembers() > 20 then
       -- in 20 man raid
    elseif inParty and GetNumPartyMembers() > 4 then
       -- in a 5 man party

    Thats the general gist of it, the numbers to check for are up to you.

    to Check for a your pet

    local hasPet = UnitExists("pet")
  • Avatar of Arrowsong Arrowsong May 24, 2009 at 02:06 UTC - 0 likes

    What I'm after includes a few "variables". Somewhat difficult to explain. I use SimpleThreatMeter. I have made a set of panels to "frame" it. I cannot parent nor anchor to it. So, using scripts I would like to have the panel show during the following events.

    1. In combat + 2. In party / raid (with or without pet active) 3. Not in party / raid WITH pet active.

    and just always hide ooc. Here is what I have so far but this is lacking the party/raid check and has me somewhat baffled...

    OnLoad if select(2, UnitClass("player")) == "HUNTER" then self:RegisterEvent("PLAYER_REGEN_ENABLED") self:RegisterEvent("PLAYER_REGEN_DISABLED") end self:Hide()

    OnEvent if event == "PLAYER_REGEN_ENABLED" then self:Hide() elseif event == "PLAYER_REGEN_DISABLED" and UnitExists("pet") then self:Show() end

    Thanks for the help. Since I've been getting better at Kgpanels, I'm only loving it more and more. Thanks for the help.

    - Arrowsong

  • Avatar of kagaro kagaro May 21, 2009 at 15:01 UTC - 0 likes

    set the background style to none

  • Avatar of Hyped Hyped May 20, 2009 at 22:09 UTC - 0 likes

    I recently stopped using Discord Art due to it causing major lag, everyone recommended KG panels as the art mod to use, but I ran into a problem.

    My image is 512x512 and previews of it show up in kg panels, but I cannot get it to show up in an actual panel (unless I click tile background ><).

    here is the image if it helps:

  • Avatar of jimnevets jimnevets May 06, 2009 at 19:09 UTC - 0 likes

    Whenever i save a file using Photoshop as a .tga it gives it a solid fill white background (despite i save it as a checkered "empty" background), i cant see any help on the site after a mind numbing search, any help will be appreciated. thanks in advance

  • Avatar of kagaro kagaro May 06, 2009 at 00:02 UTC - 0 likes

    not there isnt at this time.

  • Avatar of Lleyna Lleyna May 05, 2009 at 22:07 UTC - 0 likes

    Is there a global lock/unlock option?

  • Avatar of esullivan esullivan Apr 21, 2009 at 13:34 UTC - 0 likes

    What I want to do is have a panel that shows when I am in a party or raid, but hide it when I am solo.

    Seems like that first script in your sample scripts would do that, but I must be missing something.


Date created
Sep 16, 2008
Last update
Jul 19, 2016
Development stage
  • enUS
  • frFR
  • koKR
  • zhCN
All Rights Reserved
Curse link
Reverse relationships
Recent files
  • A: r438 for 7.0.3 Jul 19, 2016
  • A: r437 for 6.2.0 Jun 23, 2015
  • A: r436 for 6.1.0 Feb 24, 2015
  • R: 1.20 for 6.0.2 Oct 24, 2014
  • R: 1.19 for 6.0.2 Oct 17, 2014