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 VaughnOfCenarius VaughnOfCenarius Aug 18, 2010 at 01:18 UTC - 0 likes

    Hi; new user to KG Panels and really thrilled with the possibilities; have a question about setting some frames up.

    I want to tie a frame to some power auras, thus want to tie the frame to the settings of the Auras themselves so ideally:

    Hide on combat / log in / Vehicle UI. Show on combat.

    So far I have what I think is the correct script for show / hide for combat (I "think" because I just googled it down but not sure it's accurate.) :

    if event == "PLAYER_REGEN_ENABLED" then self:Hide()

    elseif event == "PLAYER_REGEN_DISABLED" then self:Show() end

    So if that's right; just need the others. If you can send me to a directory where a collection of these scripts can be found it'd be greatly appreciated. Thanks =D

  • Avatar of Degrad Degrad Jul 28, 2010 at 19:13 UTC - 0 likes

    Good day Please How to create scripts to show panels as animation? I have to create Three panels, each panel had its own script? Or one panel and the script written as "
    Interface
    Addons
    Textures
    Animation
    Textures" and the three textures in a folder? Here I found a gif, how do I prove in a TGA texture panel http://img704.imageshack.us/f/testug.gif/ http://img838.imageshack.us/f/test1.gif/

    .. I do not know where and how do I start. thank you

  • Avatar of xxNesherxx xxNesherxx Jul 15, 2010 at 00:31 UTC - 0 likes

    Thank you so much for releasing a fix today for the issue I was having! Much appreciated, everything works great now! =)

  • Avatar of xxNesherxx xxNesherxx Jul 14, 2010 at 05:18 UTC - 0 likes

    I did the recent updates for KG Panels and I tried to setup a new toon and when I went to the Active Panels > Texture Options > Background Ttextures dropdown menu I get this error msg:

    Message: ...s\AceGUI-3.0-SharedMediaWidgets\BackgroundWidget.lua line 42: attempt to perform arithmetic on global 'number' (a nil value)

    All of the textures are gone. My other toons are fine and their settings and textures are still working. But if I choose to check the textures there I get the same error msg. Please assist.

    Thank you.

  • Avatar of kagaro kagaro Jul 02, 2010 at 01:06 UTC - 0 likes

    you can still anchor it there, just reset the offsets lower

  • Avatar of tordenflesk tordenflesk Jul 01, 2010 at 15:20 UTC - 0 likes

    Now that ChatFrame1 starts all the way up by the new social-button. What do i anchor my panel to for it to fit my chatframe?

  • Avatar of guiedo guiedo Jun 20, 2010 at 21:37 UTC - 0 likes

    Hello Great AddOn, By chance is there a way to format the numbers you get from GetSpellCritChance()?

    Would like to only show up to 2Decimal places.

    Thank you in advance for any help.

  • Avatar of DasFaultier DasFaultier Jun 14, 2010 at 15:21 UTC - 0 likes

    @Kazazik:

    It's easier if you just parent/attach the Panel on Omen and then config Omen for the situations.

    Parent it to "OmenBarList". Works well.

  • Avatar of Kazazik Kazazik Jun 09, 2010 at 21:44 UTC - 0 likes

    Hello all. I made a panel for omen for example. I want it to be shown in raid and party and not to be shown on Battleground. I use this script, but what i have to add to hide panel on BG ?

    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
    

    What?! Spelling? Gramma? English? Ermm m8 i dont know what that words means...

  • Avatar of kagaro kagaro Jun 04, 2010 at 13:22 UTC - 0 likes

    just add a variable to the panel.

    like self.wasHidden = false

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,717,889
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