kgPanels sh*ts on my carpet every time I log off
http://postimage.org/gallery/84fcqd04/
pic ONE is when I log in, pic TWO is after a /rl (/reload) with the panels placed correctly. what in the aslkdjhaslkdjaskjdhb is causing this ?? I swear everything is anchored and locked only started happening after I made the chat background (it toggles on/off when clicked) Code:
if pressed then any ideas? |
Have you tried changing the script to:
Lua Code:
to ensure that there isn't a problem with the reference to the frame? Do you have any other scripts set? Is the chat background parented to a frame other than UIParent? Are any other frames parented or anchored to the chat background? |
Quote:
|
Without seeing your entire, actual scripts, it's impossible to even guess at what might be happening.
|
Quote:
again, the change only started around the time I added the on click function in my first post perhaps there is a way to "auto /rl" upon log in? how would I do this? |
A bit of testing indicates that possibly once it's hidden, the frame then won't receive the 'click' again to unhide.
Try using in your onclick: Lua Code:
self here just means that it's referring to the frame that you are attaching the scripts to. The parent frame alpha also effects the children frames, so this should hide all three. |
Quote:
http://postimage.org/gallery/84fcqd04/ pic One is every time I log in :((( pic Two is post "/rl" with panels in the right positions been fooling around with settings still no idea whats doing this :mad::confused: |
I haven't had any luck recreating your positioning problem.
So, work backwards. Does the problem persist if you change the frame reference in the script from kgpanel16 to self? Does the problem persist if you remove the scripting? Kgpanels can be a little flaky if you've positioned something and then changed the anchoring or parenting. Have you deleted the child frames and recreated them, with setting the parent frame being the first thing that you do after recreating the child frames? It helps if you give us an idea of what you have tried. |
Just a shot in the dark... Are you getting any errors with your new script? (double-checking that errors are turned on in interface options, of course)
|
Well, I've tried removing the toggle hide/show script- no changes
tried deleting the panel group itself- no changes tried re anchoring all the frames which appear to be moving (stuff on the bottom, chat, and unit frame bg's) no changes :C http://postimage.org/gallery/84fcqd04/ |
My guess would be an error being thrown during login but not during /reload. It can happen (which I believe was Seerah's point).
When in game, press escape, then select Interface, Help (from the Game tab) and check Display lua errors. Logout and logon again and see what you get. |
Quote:
ah! good advice I got this error: Code:
29x kgPanels\kgPanels-1.5.4.4.lua:785: kgPanel16:SetParent(): Would create a loop parenting to kgPanel16 there is one more panel that makes up the chat bg; the invisible panel which holds the on click function would parenting "kgPanel16" to said on click panel resolve the infinite loop error? (purely intuitive assumption here, no lua knowledge for this problem) |
That means you're trying to parent two panels to each other. (or 16 to itself? judging from the error)
|
What are your panels anchored to?
|
Quote:
the panels I believe are causing the error at this point are the chat background cluster (3 panels) shadow, class color, and interior gray. the shadow and color panels are parented and anchored to the interior one. "kgPanel16" the offender mentioned in the error. the reason for using another panel to hold the onclick function is because by hiding the shown ones, they no longer are clickable, thus- invisible panel = invisible button otw i would use the scripts from Ekaterina |
Did you get the problem fixed?
If not the I believe Seerah was saying that given the error you reported, it was most likely that kgPanel16 is being anchored to itself thus creating the circular call: kgPanel16:SetParent(kgPanel16) would call: kgPanel16:SetParent(kgPanel16) would call: kgPanel16:SetParent(kgPanel16) would call: kgPanel16:SetParent(kgPanel16) would call: kgPanel16:SetParent(kgPanel16) would call: ... and so on. After 10,000 or so of these circular calls the lua interpreter gives up and sh*ts on your carpet ;). Anchor kgPanel16 to another panel or UIParent and see what happens (adjusting X/Y coords accordingly). |
All times are GMT -6. The time now is 06:34 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI