kgPanels
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.
The OnLoad script, isnt executing cause kgPanels fakes OnLoad as the panels can be created well before the parents and ancors exists. The faked OnLoad is done via a hidden function called InitScripts, which in turns runs the attached onLoad after the parents and anchors come into existence. Also OnLoad in your context below would never work, as by time you can fetch the panel, OnLoad has already executed. (onLoad works best with XML files as it calls that after CreateFrame executes.) So your best is instead of fuding the onLoad, to directly just set the backdrop and alhpa. IF you want this to be permanement base on clicks, then your gonna need to mess with the saved variables
I Really dont advise you doing that, as you could corrupt your saved variables.
As for the first function, where are you defining it? if you want to make it global to your scripts I suggest more along the lines of: In an OnLoad script
so in OnClick you could do kgPanels:MoveTo(self, .....)
Hey Kagaro.
I worked out 2 Scripts with a mate, but they don't want to work. Both are called by 'OnClick' First, to move a panel out of the frame:
and second, to Change the OnLoad script of a frame by clicking another frame:
Both of them don't work. Any ideas?
Is there a vodoo trick to mastering this?
Just tested 1.5.4.3 to see if it had been fixed, but I still have the same problem.
I have been able to create, edit, modify just like normal, but ONLY if I do it on the DEFAULT profile/layout.
The second i try to create a different profile, I cant change anything under Active panels. Cant change opacity or colours or anything.
Only way I was able to do anything was by Importing the profile of the default profile into a new profile. Then i could change that if I had it active.
It's a workaround, but it's still not good that you cant create settings in anything but the default layout >.<
Boof
how is it to make in an simple script to show the money from a char, i only found big scripts, is this posible to make?
mfg
ok applied a fix that should resolve the issues
bear with me, im trying to fix 2 problems without causing people to change anything.
How on earth did you discover that? Looks OK now.....thanks.
This error is not happening on all my character since the last update. 2 of my toons' layouts are fine. But one is destroyed. Lets see....
Change Background Color Style from "Solid" to "None" on the offending texture-based panels. This fixes the problem. And the toons where the Panels were working fine, this was already set to "None"
I am having the same problem - white panels for most of the art that was working just fine previously. Deleting and recreating the panels doesn't fix the issue.
Please see http://forums.wowace.com/showthread.php?p=308871
My panels replaced by white block after last update.
Rolling back to 1.5.4.1 fixed it. Not sure what happened or what changed in the code.
kcuhc .. fixed, in next 1.5.4.2