PDA

View Full Version : GUI Windows


JkWhoSaysNi
09-10-2006, 06:58 PM
Hello, how can I make it so the same window can be recreated after being closed (using the x in the corner).

For example, i have a window showing in an onWeaponFired() event if I fire the weapon, the window shows the first time. If i press the X then fire the weapon again, nothing happens.

How can I get the window to show every time?

Thanks.

xXziroXx
09-10-2006, 07:01 PM
Hello, how can I make it so the same window can be recreated after being closed (using the x in the corner).

For example, i have a window showing in an onWeaponFired() event if I fire the weapon, the window shows the first time. If i press the X then fire the weapon again, nothing happens.

How can I get the window to show every time?

Thanks.


In the part where the GUI is created, add:

destroyOnHide = true;

JkWhoSaysNi
09-10-2006, 07:11 PM
thanks :)