kgPanels

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
end

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 m31618570 m31618570 Mar 24, 2010 at 10:28 UTC - 0 likes

    Hi. Em, what script should i have in kgps for my panel to appear/disappear when i have a target selected/deselected? Also what is the command to change panel background color?

    Quote:

    if UnitExists("target") == nil then
    self:Hide()
    return
    end
    local cl = UnitClassification("target")
    if (cl == "elite") or (cl == "worldboss") or (cl == "rareelite") then
    self:SetBackdropColor(0.1, 0.1, 0.1, 0.1) <-here i would like to change background color
    self:Show()
    else
    self:SetBackdropColor(1, 1, 1, 1)
    self:Show()
    end

    What i want is when i sellect a target the designated panel to appear, also for it to have a color matching the class of target :D (i want to improve the Zonker UI -soz a little help? thx)

    Last edited Mar 24, 2010 by m31618570
  • Avatar of Sapphirecat Sapphirecat Mar 15, 2010 at 00:04 UTC - 0 likes

    Hi guys, I'm trying to create a panel that will show only when I have a WIM window open.

    I've got other panels parented to various frames from different addons and they work fine, but WIM seems to have a peculiarity when it comes to frame names. When I have a single whisper open, parenting to WIM3_msgFrame1 works perfectly. When I get another whisper, the panel only shows when I'm on the tab for the first message. There doesn't seem to be any part of the WIM window that has the exact same frame name on all the tabs. Is there a way to have the panel called whenever WIM is open, no matter which tab I'm on?

  • Avatar of StarGryphon StarGryphon Mar 10, 2010 at 01:05 UTC - 0 likes

    Thanks - The literal function worked great - I was able to get a bunch of data blocks off the screen.

  • Avatar of kagaro kagaro Mar 09, 2010 at 15:08 UTC - 0 likes

    local funkyNamedFrame = _G['literal name here']

  • Avatar of StarGryphon StarGryphon Mar 09, 2010 at 01:13 UTC - 0 likes

    I am having the same type of issue that DeathlaceVII is having. The LDB addons I am trying to script on/off based on mouse click have a space in the name or a '-' character. Is there some type of literal modifier or character escape process so these characters do not cause errors?

  • Avatar of madindehead madindehead Mar 06, 2010 at 16:26 UTC - 0 likes

    What I have done now kagaro, is opened both eePanels.lua file and kgPanels.lua that exist in the saved variable folder, and put in the values that way =)

    It's pretty much a direct copy from eePanels now. Thanks for the advice though ^^

  • Avatar of Calest Calest Mar 06, 2010 at 06:57 UTC - 0 likes

    I've been trying to find and create a script to show my attack power and update it as it changes.

    I thought the Bonus Spell Damage sample script would help me figure it out but when I put it in and reload nothing happens. I've checked intercept mouse clicks, copied the script and put it in exactly where it says to and nothing comes up in there either. I also tried a another sample script to show the panel only when in combat, same thing copy and pasted the script from Samples and reloadui, panel is there out of combat still.

    Is there a place that can help me with this? I am no programmer and don't really understand scripts (I'd like to). This seem either broken or I am missing something totally.

    Any help would be greatly appreciated.

  • Avatar of kagaro kagaro Mar 06, 2010 at 05:29 UTC - 0 likes

    upgrade from eepanels to eepanels2 then up to kgpanels? or just relayout it, kgpane;s config has soo many more options

  • Avatar of madindehead madindehead Mar 06, 2010 at 00:43 UTC - 0 likes

    Hmm. All I saw was an option to import from eePanels2 sadly.

  • Avatar of kagaro kagaro Mar 06, 2010 at 00:12 UTC - 0 likes

    there is an import eepanels layout command in the config.

Facts

Date created
Sep 16, 2008
Category
Last update
Sep 10, 2013
Development stage
Release
Language
  • enUS
  • frFR
  • koKR
  • zhCN
License
All Rights Reserved
Curse link
kgPanels
Reverse relationships
1
Downloads
1,746,130
Recent files
  • R: 1.17 for 5.4.0 Sep 10, 2013
  • A: r428 for 5.4.0 Sep 10, 2013
  • R: 1.16 for 5.3.0 May 22, 2013
  • A: r426 for 5.3.0 May 22, 2013
  • A: r425 for 5.2.0 Apr 29, 2013

Authors