Blockland Forums > Modification Help
Opening a GUI without releasing mouse.
(1/3) > >>
Jasa1:
How would I go about doing so?
Greek2me:
You could just parent your GUI to the play gui I believe.

Or, try this (untested):

--- Code: ---function YourGUI::onWake(%this)
{
activateDirectImput();
}
--- End code ---
Replace YourGUI with your gui name.
Jasa1:

--- Quote from: Greek2me on October 03, 2011, 09:15:33 PM ---You could just parent your GUI to the play gui I believe.

Or, try this (untested):

--- Code: ---function YourGUI::onWake(%this)
{
activateDirectImput();
}
--- End code ---
Replace YourGUI with your gui name.

--- End quote ---
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.
Greek2me:
Try this. Make your GUI, then do playGUI.add(YourGUI);
Jasa1:
That worked for the most part. But I can't click anything on it by pressing M to release the mouse.
Navigation
Message Index
Next page

Go to full version