Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GUI Windows (https://forums.graalonline.com/forums/showthread.php?t=68652)

JkWhoSaysNi 09-10-2006 06:58 PM

GUI Windows
 
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

Quote:

Originally Posted by JkWhoSaysNi
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:

PHP Code:

destroyOnHide true


JkWhoSaysNi 09-10-2006 07:11 PM

thanks :)


All times are GMT +2. The time now is 01:58 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.