Create panels for customizing your UI, sucessor to eePanels
OnClick now provides a pressed and released variable you can check for.
if pressed then -- do mouse down actions elsif 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.
© 2008-2009 Curse Inc.
- #54
Schimmy Tue, 09 Jun 2009 17:14:56I am trying to create my own UI (with some help with art) and I am getting stuck. If you look at the left side of the UI you will notice that it is transparent and very dark. On the right side I have color added but it shows behind the dragon, which I am trying to avoid. I would like the free flying dragon on the left with the brightness of the dragon on the right. Is this possible? http://www.maryandjon.com/images/dragonui.gif
- #53
johnsmithblu Mon, 08 Jun 2009 10:46:37/print GetMouseFocus():GetName()
DEAD USEFUL when trying to attach panels to (sorry for my lack of terminology) "things".
- #52
photekk Wed, 03 Jun 2009 01:21:31Could you guys help me with a simple script for kgPanels. I want to create a panel to "frame" the party name plates/portraits for when I'm in a group. I saw in your example scripts that you have this, however it isn't working for me (I copied and pasted exactly as it was posted):
Adjusting Panels based on Raid or 5 Main party 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
Has anyone gotten this to work? Are there any other modifications I have to use with this script for it to work - all I did was create a new panel, entered in the OnLoad and OnEvent script and tested it by entering a party - no panel :(
Help!
- #51
kagaro Mon, 25 May 2009 15:24:14to detect in your in a raid or party
Thats the general gist of it, the numbers to check for are up to you.
to Check for a your pet
- #50
Arrowsong Sun, 24 May 2009 02:06:01What I'm after includes a few "variables". Somewhat difficult to explain. I use SimpleThreatMeter. I have made a set of panels to "frame" it. I cannot parent nor anchor to it. So, using scripts I would like to have the panel show during the following events.
1. In combat + 2. In party / raid (with or without pet active) 3. Not in party / raid WITH pet active.
and just always hide ooc. Here is what I have so far but this is lacking the party/raid check and has me somewhat baffled...
OnLoad if select(2, UnitClass("player")) == "HUNTER" then self:RegisterEvent("PLAYER_REGEN_ENABLED") self:RegisterEvent("PLAYER_REGEN_DISABLED") end self:Hide()
OnEvent if event == "PLAYER_REGEN_ENABLED" then self:Hide() elseif event == "PLAYER_REGEN_DISABLED" and UnitExists("pet") then self:Show() end
Thanks for the help. Since I've been getting better at Kgpanels, I'm only loving it more and more. Thanks for the help.
- Arrowsong
- #49
kagaro Thu, 21 May 2009 15:01:33set the background style to none
- #48
hypez Wed, 20 May 2009 22:09:26I recently stopped using Discord Art due to it causing major lag, everyone recommended KG panels as the art mod to use, but I ran into a problem.
My image is 512x512 and previews of it show up in kg panels, but I cannot get it to show up in an actual panel (unless I click tile background ><).
here is the image if it helps: http://rapidshare.com/files/235373238/texture1.rar.html
- #47
jimnevets Wed, 06 May 2009 19:09:46Whenever i save a file using Photoshop as a .tga it gives it a solid fill white background (despite i save it as a checkered "empty" background), i cant see any help on the site after a mind numbing search, any help will be appreciated. thanks in advance
- #46
kagaro Wed, 06 May 2009 00:02:47not there isnt at this time.
- #45
Lleyna Tue, 05 May 2009 22:07:07Is there a global lock/unlock option?