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 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.
Facts
- Date created
- Sep 16, 2008
- Category
- Last update
- May 05, 2012
- Development stage
- Release
- Language
- enUS
- frFR
- koKR
- zhCN
- License
- All Rights Reserved
- Curse link
- kgPanels
- Reverse relationships
- 1
- Downloads
- 1,309,834
- Recent files
Relationships
- Tool used
- LibDataBroker-1.1
- Embedded library
- Ace3
- AceGUI-3.0-SharedMediaWidgets
- CallbackHandler-1.0
- LibDualSpec-1.0
- LibSharedMedia-3.0
- LibStub
- Reply
- #217
kagaro May 05, 2012 at 19:37 UTC - 0 likesOnUpdate was fixed to use the variable named elsapsed in r403, the OnSizechanged was fixed in r404 and Ive tagged a new release
- Reply
- #216
Choonster May 05, 2012 at 15:51 UTC - 0 likesFor those wondering what the names of the various arguments to the scripts are (like I was earlier), I've looked at the function that sets up the scripts and written them below.
self is always the panel's frame.
I'm going to do some testing with the OnSizeChanged arguments, I'll file a ticket if my suspicion that they're are in the wrong order turns out to be true.
Edit: I'm definitely right about the arguments. I've filed a ticket about them now.
- Reply
- #215
kagaro Apr 14, 2012 at 21:33 UTC - 0 likesfixed
- Reply
- #214
victorcillo Apr 11, 2012 at 17:21 UTC - 0 likesKagaro, you put the script for OnClick, has an error and confusion can lead people to not have much idea of programming, if you can change elsif - elseif, will be better, I think I broke his brain was not working because your script when I gave him to copy - paste XD
P. D. I hope my comment did not offend you friend
- Reply
- #213
victorcillo Apr 10, 2012 at 02:01 UTC - 0 likes@palthis: Go
If possible make a panel button has an effect, I've done this:
OnClick
if pressed then
self:SetWidth(190) self:SetHeight(55)
elseif released then
self:SetWidth(200) self:SetHeight(60)
end
- Reply
- #212
victorcillo Apr 10, 2012 at 01:56 UTC - 0 likeshello, my name is victor, sorry for my bad English.
I use almost KgPanels since it was created, I have much knowledge of programming but I'm learning through Kagaro, I put a screenshot of my UI KgPanels totally made by using many of the scripts present on this forum and other pages, if someone want to know as I have done any of the parts that make up that let me know by private message or just putting it here.
http://imageshack.us/photo/my-images/706/wowscrnshot040912135024.jpg/
- Reply
- #211
palthis Nov 22, 2011 at 06:48 UTC - 0 likesIs it possible to simulate a button using a panel and pressed effect?
- Reply
- #210
begothprincess Nov 09, 2011 at 15:27 UTC - 0 likesHi I got KG panels a long time ago and i loved the concept how ever i am not good at using photo shop. I am wondering if anyone might be able to help me create a panel. I have an img. that i want to use. Its based off the new darkmoon fair art. If you can help me do it please send me a message.
- Reply
- #209
HashBrownJM Nov 06, 2011 at 19:03 UTC - 0 likesHi all. Took a long break from WoW, finally getting back into it, and there's something I had on my old UI that I can't remember how to recreate (because it required a little bit of code in the kgPanels config menu).
Essentially, I have three separate kgPanels that fit behind my Grid frames. One is sized for a 5-man party, one for a 10-man raid, and the other for a 25-man raid. I know there's something you can put in each of those frames's config that'll only make them show up for the appropriate party size.
So, for example, if I'm soloing, none of them show. As soon as I enter a party, the 5-man one appears. If I join a raid, 10-man, or if it's 25, 25-man. So on and so forth.
Does anyone know what I need to put in? It's two fields (I'll have to look up which), but it was something like scan party, then IF members are >2 and <11, show.
Etc.
Thanks!
- Reply
- #208
OneWhoSighs Sep 18, 2011 at 12:38 UTC - 0 likesHi, I've been using kgpanels as a border for my target unit frame. I'm currently using the script given from the sample scripts page and there appears to be a delay when I select/deselect a target. Is there a way to reduce to remove this delay? Thanks.