UI glitch
#1
I was using a tool that manipulated the UI and then the UI got stuck.

Reply
#2
I can't tell if it's a glitch.

Or your scripting's fault.
Wait, NVM.

I think I've seen this, but I retried and worked perfectly.
Hmmm. Try making it so that the script creates a new UIFrame, not just change it's parent.

That's what I did with my gear tool.
Reply
#3
(07-02-2011, 03:47 PM)AK-47 Wrote: I can't tell if it's a glitch.

Or your scripting's fault.
Wait, NVM.

I think I've seen this, but I retried and worked perfectly.
Hmmm. Try making it so that the script creates a new UIFrame, not just change it's parent.

That's what I did with my gear tool.



I think I'd rather it was fixed, I'm going to make quite a large GUI and I don't want to script the creation of every single part.
Reply
#4
I did that with my gear tool, and it didn't break when I rapidly switched. I have 6 frames, 6 text UIs, 12 buttons with a script on each and every one of them, that is created and destroyed everytime you equip and unequip it.
And no matter how fast you switch it in and out, it won't break.
Reply
#5
Are you using UIStickyFrames? They're extremely buggy and need to be removed.

Also, try wrapping code that creates, removes, or changes a lot of GUI components in

Code:
game:addTask(function()
--code here
end)

, especially if you are clone()ing the UI from storage or something. (this is standard practice for cloning parts too)
Reply
#6
(07-04-2011, 01:10 AM)Jacob_ Wrote: Are you using UIStickyFrames? They're extremely buggy and need to be removed.

Nope, I'm just changing the parent of a regular frame.

Then it gets stuck after working properly once

And thanks for the tip, I'll try that
Reply
#7
Hope it works!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)