Bubby4jJoin Date: 2008-12-25 Post Count: 1831 |
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. |
|
|
Not impossible, difficult. :P |
|
Bubby4jJoin Date: 2008-12-25 Post Count: 1831 |
You have to keep track of older/newer elements yourself at the moment. |
|
xvgigakidJoin Date: 2008-06-22 Post Count: 4407 |
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... |
|
xvgigakidJoin Date: 2008-06-22 Post Count: 4407 |
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
:/ |
|
Bubby4jJoin Date: 2008-12-25 Post Count: 1831 |
Just found out, you can use GetChildren to find out what is older, although it would still be nicer to have this function. |
|
Bubby4jJoin Date: 2008-12-25 Post Count: 1831 |
@xvgigakid
What if 2 GUI elements had the same lap number? Hm? |
|
|
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! |
|
xvgigakidJoin Date: 2008-06-22 Post Count: 4407 |
@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 :/ |
|
|
Sorry for my rant of spam, but anyways, I like this idea. If it's a value that means it could also be changed. |
|
xvgigakidJoin Date: 2008-06-22 Post Count: 4407 |
We could lock the value and have it change during finding a simaller value.., |
|