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 Nathadir Nathadir Jan 20, 2009 at 13:09 UTC - 0 likes

    I updated LibSharedMedia, and the fonts now work as intended - thank you!

    However, even after I have added Recount as a scriptdep, I don't get anything. I tried creating a new panel with the default settings, making the OnLoad script: self:SetText("TEST"); and even this does not result in anything being shown on the panel.

    Is there anything else that could be wrong?

  • Avatar of kagaro kagaro Jan 20, 2009 at 01:35 UTC - 0 likes

    You should also really check that Recount is there when you script runs. it may be erroring since Recount wasnt valid when you script runs and doing it on update means for every frame you pass your checking the title.

    Add as a scriptdep Recount to be sure Recount has loaded before your script is launched.

  • Avatar of kagaro kagaro Jan 20, 2009 at 01:32 UTC - 0 likes

    kgpanels checks for LibSharedMedia-3.0 to access sharedmedia content.

  • Avatar of Nathadir Nathadir Jan 19, 2009 at 10:05 UTC - 0 likes

    I'm using r173, updated 1/4/09, so I think it's the latest I could get.

    Another thing: When I try to use the SetText() function on one of my panels, I get no results. I would like to replace the default Recount title, so I set the following scripts:

    <<code>>OnUpdate: if Recount.MainWindow.Title:IsVisible() then Recount.MainWindow.Title:Hide(); end

    local title=Recount.MainWindow.Title:GetText() if not title==self:GetText() then self:SetText(title) end<</code>>

    I can't see there should be anything wrong with this script, at least not on the part of not being able to retrieve the text on the Recount title frame, since when I use

    /script DEFAULT_CHAT_FRAME:AddMessage(Recount.MainWindow.Title:GetText())
    


    I get what I wanted just fine, even when the Title frame is hidden.

  • Avatar of kagaro kagaro Jan 19, 2009 at 03:25 UTC - 0 likes

    It should just be there, what version of shared media are you using?

  • Avatar of Nathadir Nathadir Jan 18, 2009 at 16:06 UTC - 0 likes

    I seem unable to change the font used in Text Options, since the selection bar is simply grayed out :/ I am aware that fonts used are imported from SharedMedia, but I have a multitude of fonts imported into that addon, which I used with great succes in both SLDataText and Chatter. I've tried resizing the frame, changing opacity and whatnot.

    Any clues as to how I can fix this problem?

  • Avatar of Yanziang Yanziang Dec 24, 2008 at 11:29 UTC - 0 likes

    Hi

    I have no idea how to use kgPanels, but could you help me get this one here?

    http://i227.photobucket.com/albums/dd85/origami_boulder/WoWScrnShot_101908_003152.jpg

  • Avatar of kagaro kagaro Dec 05, 2008 at 13:41 UTC - 0 likes

    profiles only change which layout a particular character is using, the layouts are global.

  • Avatar of Helghast Helghast Dec 04, 2008 at 15:28 UTC - 0 likes

    Hello there :)

    I have a little ... problem. In fact, I don't have access to differents profiles : all profiles are strictly the sames. If I modify one, all the others are modified the same way.

  • Avatar of Sonicandtails Sonicandtails Nov 16, 2008 at 19:32 UTC - 0 likes

    Would anyone happen to know the event name or perhaps provide a script for a panel to shut off when the action bar changes to the seige weapons/mounts action bar?

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,719,610
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