Author Topic: Opening a GUI without releasing mouse.  (Read 1445 times)

How would I go about doing so?
« Last Edit: October 16, 2011, 02:45:02 AM by Jasa1 »

You could just parent your GUI to the play gui I believe.

Or, try this (untested):
Code: [Select]
function YourGUI::onWake(%this)
{
activateDirectImput();
}
Replace YourGUI with your gui name.

You could just parent your GUI to the play gui I believe.

Or, try this (untested):
Code: [Select]
function YourGUI::onWake(%this)
{
activateDirectImput();
}
Replace YourGUI with your gui name.
Didn't work.
I'm trying to make something that just adds onto the PlayGui and can only be interacted with when releasing the mouse.

Try this. Make your GUI, then do playGUI.add(YourGUI);

That worked for the most part. But I can't click anything on it by pressing M to release the mouse.

Try packaging whatever function is called when you toggle the mouse so that it calls YourGUI.bringToFront().

Try packaging whatever function is called when you toggle the mouse so that it calls YourGUI.bringToFront().

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.

That seems kinda backwards...

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.

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.
.pushToBack() gives me "Wrong number of arguments."
What are the arguments?

The wrong args errors normally tell you what they should be.

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.
Wait, so this exists on all scriptGroups, simSets, etc? That's really useful actually.

The wrong args errors normally tell you what they should be.
Wait, so this exists on all scriptGroups, simSets, etc? That's really useful actually.
The only argument for it is "object"
I put PlayGUI and the name of my GUI but absolutely nothing happened.

You should only have to do YourGUI.pushToBack(); I think.

You should only have to do YourGUI.pushToBack(); I think.
Apparently not.

Could somebody provide me actual code on how to do so?