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 rousa rousa Jan 06, 2011 at 01:01 UTC - 0 likes

    Anyway to make a panel show if "target=pet"?

  • Avatar of kagaro kagaro Dec 05, 2010 at 18:40 UTC - 0 likes

    try setting the anchors and parents in a script and set pitbull as a dependancy. Part of it maybe how pittbull is creating those frames. Also may have todo with pittbull frame crcycling as well.

  • Avatar of angrysteel angrysteel Dec 05, 2010 at 02:03 UTC - 0 likes
    Quote:

    Now I'm using Pitbull4 and updated kgpanels and used moveanything to find out the pitbull frames are now labeled Pitbull4_Frames_whateverframelikeplayer/target. I tried using the old label and new label and when I do that the box I created just disappears.

    I noticed this too. You have the frame names right, and if they get thrown off your screen when you try to parent them / anchor them, just reload and do it again.

    Took me a long time of trial and error, and not sure whats causing it. But if i reload ui and recreate the frame, it works.

    Basically, if it gets thrown off the screen when you try to parent it, reload ui, try again. If that doesnt work, remake whatever you were trying to attach to the pitbull frame, and then try to parent it. Took me a few tries, but its working now for me.

    Only have this issue with Pitbull also. Never had an issue parenting to Omen, Recount, Minimap, etc.

    Last edited Dec 05, 2010 by angrysteel
  • Avatar of Minotaurz Minotaurz Dec 03, 2010 at 15:25 UTC - 0 likes

    Just came back to WoW and updating my UI and kgpanels is the last thing keeping me from having the old look back. The problem I'm having is I cannot get the boxes I create to attach to my unit frames (using Pitbull4). Before the update I was using Pitbull 3 and all I did was use the Parent and Anchor Frame setting to attach to PitbullUnitFrame. Now I'm using Pitbull4 and updated kgpanels and used moveanything to find out the pitbull frames are now labeled Pitbull4_Frames_whateverframelikeplayer/target. I tried using the old label and new label and when I do that the box I created just disappears.

    Here is what my old UI looked like and what I had around the unit frames http://www.wowinterface.com/download...WarriorUI.html

  • Avatar of SunTsu SunTsu Nov 13, 2010 at 17:57 UTC - 0 likes

    The language you see is Lua, the very language used in each and every Addon. http://www.lua.org/pil would be a good startingpoint and wowhead/wowprogramming as a reference for WoW specific stuff

  • Avatar of Stuckinwell Stuckinwell Nov 12, 2010 at 21:48 UTC - 0 likes

    I hope this isn't a terribly silly question, but is there any relatively easy location where one could find the general syntax used by this mod? I know what I want to do with my panels, but have no experience coding mods in WoW and thus my ideas for OnClick/OnLoad are going to waste. I see a few samples in the FAQ and on wowwiki, but not nearly enough to code something useful. A basic repository for common commands in the language would be extremely useful, though such a thing rarely exists in cases like this.

    Last edited Nov 12, 2010 by Stuckinwell
  • Avatar of DasFaultier DasFaultier Nov 11, 2010 at 14:57 UTC - 0 likes

    Hey, i would like to request again an idea to change the framebordercolor of ally my frames by clicking a single one. The mentioned variable, containing "was.hidden" is still a mystery to me. (Idea is 3 Posts below)

  • Avatar of kagaro kagaro Oct 30, 2010 at 00:22 UTC - 0 likes

    Loom927: if you have libsharedmedia installed correctly and something adding fonts to libsharedmedia they will show up in the dropdown

  • Avatar of Velran Velran Oct 29, 2010 at 16:52 UTC - 0 likes

    Hello, I'm having trouble adding fonts to kgpanels. I've tried various methods people have posted on different forums, but they didn't work. Please can you help me?

    I already have SharedMedia.

  • Avatar of DasFaultier DasFaultier Oct 28, 2010 at 17:30 UTC - 0 likes
    kgPanels.db.global.layouts[kgPanels.active]["KgPanel15"].scripts["LOAD"] = "local class = UnitClass("player")
    self:SetBackdropBorderColor(RAID_CLASS_COLORS[class].r,
    RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b, 0.7)"
    

    Throws following error: kgPanels: [string "Menu_Color_Class_OnClickUp"]:1: unfinished string near '")' But if you say, that's messy, can i make something like this: If i click Panel A, it will change the AlphaLevel of Frame B with "FrameB:SetAlpha(0.1)" and because of that Panel C will change it'S color, because of "if FrameB:GetAlpha() == 0.1 then self:SetBackDropColor(1, 1, 1) elseif FrameB:GetAlpha() == 0.2 then ..." and so on? And the change of the Alpha is permament?

    Edit: i just re-found your tip to make a panel remember it's last status [Hide/Show] >>just add a variable to the panel. >>like self.wasHidden = false

    i really don't know how you've ment that. See, i'm really good at using pre-defined functions, but unkowns functions or selfdefined ones are more than worse. So, i don't know how to make it work. i would like to get it work almost the one above: if i hide a frame, it's status will be remembered and considering of it's status, antoher frame will coler itself. But how?

    Last edited Oct 29, 2010 by DasFaultier

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,736,738
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