Blockland Forums > Modification Help
Opening a GUI without releasing mouse.
<< < (2/3) > >>
Greek2me:
Try packaging whatever function is called when you toggle the mouse so that it calls YourGUI.bringToFront().
Ephialtes:

--- Quote from: Greek2me on October 04, 2011, 06:38:22 PM ---Try packaging whatever function is called when you toggle the mouse so that it calls YourGUI.bringToFront().

--- End quote ---

It's actually ".pushToBack()" - the last thing to be rendered is the last thing in the object's stack of children. bringToFront() puts it at the bottom of the stack.
Greek2me:
That seems kinda backwards...
Ephialtes:
Seems that way but it is logical. The functions are for re-ordering children within a parent - not specifically for changing what's getting rendered over what so the functions are named appropriately. bringToFront puts it in the first child index, pushToBack makes it the last child of the parent which is rendered last.
Jasa1:

--- Quote from: Ephialtes on October 05, 2011, 12:12:51 AM ---It's actually ".pushToBack()" - the last thing to be rendered is the last thing in the object's stack of children. bringToFront() puts it at the bottom of the stack.

--- End quote ---
.pushToBack() gives me "Wrong number of arguments."
What are the arguments?
Navigation
Message Index
Next page
Previous page

Go to full version