of     1   

Bubby4j
#46984623Friday, May 13, 2011 1:11 AM GMT

I propose a new Lua function on GUI elements: GUIelement:isOnTop(anotherGUIelement) This will return true or false, based on if GUIelement is on top of the other GUI element. Would be useful when the ZIndex is the same, as it makes it impossible to detect which is on top.
blobbyblob
#46984701Friday, May 13, 2011 1:12 AM GMT

Not impossible, difficult. :P
Bubby4j
#46984742Friday, May 13, 2011 1:13 AM GMT

You have to keep track of older/newer elements yourself at the moment.
xvgigakid
#46984815Friday, May 13, 2011 1:14 AM GMT

Hmmm... I like the idea. I too am a scriptter and this would help with a certain animation idea I have... But it would sound a bit better if the function was, 'LapGui()' Lap would stand for Over lap or Under Lap. But still nice idea...
xvgigakid
#46984898Friday, May 13, 2011 1:16 AM GMT

Wait you could have a Number Value in it called lap. gui.Lap = 0. gui would be the one in the lowest layer... if gui.Lap == 0 then :/
Bubby4j
#46984918Friday, May 13, 2011 1:16 AM GMT

Just found out, you can use GetChildren to find out what is older, although it would still be nicer to have this function.
Bubby4j
#46984947Friday, May 13, 2011 1:17 AM GMT

@xvgigakid What if 2 GUI elements had the same lap number? Hm?
unknown89089
#46985004Friday, May 13, 2011 1:18 AM GMT

I now for the most part, hate GUIs, a GUI game that took me forever to make doesn't work anymore because of new updates. It doesn't even show up!
xvgigakid
#46985199Friday, May 13, 2011 1:22 AM GMT

@Bubby Good point... But is this really needed? We could easily edit this by recopying and pasting an instance. But if it is nessary then why not :/
unknown89089
#46985255Friday, May 13, 2011 1:23 AM GMT

Sorry for my rant of spam, but anyways, I like this idea. If it's a value that means it could also be changed.
xvgigakid
#46985409Friday, May 13, 2011 1:26 AM GMT

We could lock the value and have it change during finding a simaller value..,

    of     1