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 trotskyicepick trotskyicepick Oct 18, 2010 at 22:10 UTC - 0 likes

    Please see http://forums.wowace.com/showthread.php?p=308871

    My panels replaced by white block after last update.

  • Avatar of kagaro kagaro Oct 18, 2010 at 20:50 UTC - 0 likes

    kcuhc .. fixed, in next 1.5.4.2

  • Avatar of kcuhc kcuhc Oct 18, 2010 at 18:50 UTC - 0 likes

    posted this in the forums but im not sure if i should post bugs there.

    Since the patch, I've been unable to use kgPanels to color frames. Only frames that show are frames with a custom texture applied. If I use the mod to create a colored frame, gradient frame or anything with no texture added to it, it shows up invisible. Borders work, but Frame background does not.

  • Avatar of Sallv Sallv Oct 17, 2010 at 17:09 UTC - 0 likes

    I see. It never happened before and I've had my panels set up that way for some time now. I've essentially solved this anyway. All I did was remove the anchor to the party frames and just set the size to a percentage of the party frames afterwards, then dragged the frame behind where the party unit would be when that space in the party is filled.

    Either way, thanks for taking the time to investigate the issue and if it gets to be a problem, I will look into creating a script for the panels.

    Last edited Oct 17, 2010 by Sallv
  • Avatar of kagaro kagaro Oct 17, 2010 at 16:37 UTC - 0 likes

    Ok here is the issue, when you login and ARENT in a party the group unit buttons are size 0,0 so a percentage is gonna give you size 0,0 hence why they arent visible. To work around this what you could do is add a OnLoad script that adds a OnSizeChange script to resize your kgpanel when pitbulls frame resizes. OR add a OnEvent script that looks for party size changes and resize it yourself.

  • Avatar of DasFaultier DasFaultier Oct 17, 2010 at 16:29 UTC - 0 likes

    Hey, i'va got a quite interesting idee of coloring FrameBorders. I use kgpanels quite much in my UserInterface (http://www.wowinterface.com/downloads/info14170) and atm the borders are colored by classcolor (before, they were light-grey). But now i'm getting requests to add apossibility to add a feature, to change the Color easily.

    There i've got some questions: 1.) Can i attach severel frames to a synonym? e.g.:

     local_, Border = kgPanels.FetchFrame("Frame1"); kgPanels.FetchFrame("Frame2"); ....
    

    2.) Can i change the OnLoadScripts via a button-a-like frame? So, if i click this frame, it changes the OnLoadScripts of the frames? 3.) Is there a possibility to show a color-pick-circle (the same thing you can see if you color a border via kgpanels config), pick the specific color and then to add the values somewhere?

    So, my idea is like this: I create two frames - same size, same position and both clickabe, one shown, second hidden. If i click the shown frame, the little window with the color-circle appers, i pick a color and the framebordercolors are changed. at the same time, the button-frames hides and the other button is shown. if i click this button, the border is again classcolored, the button is hiidden and the first button is shown.

    Ideas? :D

  • Avatar of kagaro kagaro Oct 17, 2010 at 16:14 UTC - 0 likes

    ill see whats going on, i dont use pitbull4 myself so will require some legwork.

  • Avatar of Sallv Sallv Oct 16, 2010 at 03:04 UTC - 0 likes

    Hi, after the newest releases of kgPanels, I'm having some trouble with frames that are parented to Pitbull 4 party frames. I'm not sure if this is an issue with PB4 or kgPanels so hopefully one author is able to recognise where the problem lies.

    If I parent a panel to a party frame, for example PitBull4_Groups_PartyUnitButton1, and then set the size values to a percent (I'm using 105.6% and 137%), the panel will successfully attach and move to the panel and fit itself to the correct size. However, if I log out and then back in again, the frame will never return unless I click the activate button every time I enter the game. This does not occur for anything other than the party frames and switching from a percentage size to a standard number fixes this.

    It's a very specific problem so I understand it may be hard to fix and even then something you won't add until the next version of kgPanels but it is rather annoying having to click specific gui buttons whenever I enter the game. I can provide more info if needed.

    Edit: After more testing, the panel only starts to hide after relogging if the panel is actually anchored, so it seems to be more likely this is down to kgPanels.

    Last edited Oct 16, 2010 by Sallv
  • Avatar of zmastervader16 zmastervader16 Sep 07, 2010 at 18:32 UTC - 0 likes

    Alright so I finally got my grid script stuff working. And just decided to code the lua pet stuff by hand this way it will work consistently. You will need to figure out your own height values, and your own width values. These can be found by the following

    (grid_dimention + 2*grid_border)*grid_scale + kgPanel_border*2 + extraspace
    

    or you can just play with it and see what you think looks good. Right now it is set for Bati's Grid UI scaling with a little space around the edge if you use that.

    OnLoad:

    self:RegisterEvent("PLAYER_ENTERING_WORLD")
    self:RegisterEvent("UNIT_PET")
    self:RegisterEvent("PARTY_MEMBERS_CHANGED")
    
    self:RegisterEvent("UNIT_NAME_UPDATE")
    self:RegisterEvent("UNIT_PORTRAIT_UPDATE")
    
    self:RegisterEvent("ZONE_CHANGED_NEW_AREA")
    

    OnEvent:

    local pmems = GetNumPartyMembers()
    local rmems = GetNumRaidMembers()
    local height = 62.15
    local pet = UnitExists("pet") or UnitExists("partypet1") or UnitExists("partypet2") or UnitExists("partypet3") or UnitExists("partypet4")
    
    if rmems > 1 then
        self:SetWidth(443.95)
        self:Show()
    elseif pmems < 1 then
       self:Hide()
       self:SetWidth(94.55)
    elseif pmems == 1 then
        self:SetWidth(181.9)    
        self:Show()
    elseif pmems == 2 then
        self:SetWidth(267.25)    
        self:Show()
    elseif pmems == 3 then
        self:SetWidth(355.6)    
        self:Show()
    elseif pmems == 4 then
        self:SetWidth(443.95)    
        self:Show()
    end
    
    if rmems < 5 and not pet then
        height = 62.15
    elseif (rmems > 5 and rmems <= 10) or pet then
        height = 116.1
    elseif (rmems > 10 and rmems <= 15) then
        height = 174.05
    elseif (rmems > 15 and rmems <= 20) or (rmems <= 15 and pet) then
        height = 232
    elseif (rmems > 20 and rmems <= 25) then
        height = 289.95
    end   
    
    self:SetHeight(height)
    
    -- Written by Sanat, US Kil'Jaden
    

    Seems to work perfect now. :) shows what happens at 5am.

    Sanat

    Last edited Sep 08, 2010 by zmastervader16
  • Avatar of kagaro kagaro Aug 31, 2010 at 00:38 UTC - 0 likes

    You need to know the name of the frame, then you can do _G['name here'] or the name directly

Facts

Date created
Sep 16, 2008
Category
Last update
Oct 17, 2014
Development stage
Release
Language
  • enUS
  • frFR
  • koKR
  • zhCN
License
All Rights Reserved
Curse link
kgPanels
Reverse relationships
1
Downloads
1,796,529
Recent files
  • R: 1.19 for 6.0.2 Oct 17, 2014
  • A: r433 for 6.0.2 Oct 17, 2014
  • A: r432 for 6.0.2 Oct 17, 2014
  • R: 1.18 for 5.4.8 Oct 14, 2014
  • A: r430 for 5.4.8 Oct 14, 2014

Authors