GUI Button

Started by Dagger, Apr 23, 2017, 08:13 AM

Previous topic - Next topic

Dagger

Hello VCMP COmmunity!

I need a little help with the GUI feature
Lets say i have created a gui window and gui button and added gui button as child to the window
and when i add the flag GUI_FLAG_VISIBLE the gui is visible , but when i want to close the gui i remove flag GUI_FLAG_VISIBLE
then surely the gui disappears but doesn't close , my controls are still revoked and the button seems to be 'pressed' whenever i press space bar or Enter key

Anik

Set it to null.

Button = null

Sebastian

To remove it totally, you need to set it to null.
Otherwise, it will still exist, and will still respond.

The best way is to make a function that recreates the whole GUI you need, and another to remove it.
So all you will do it calling that function when need to show/hide the GUI.

You can check Anik's GUI Registration System, you will understand what I mean.

Dagger

Thanks for the Help.