![]() |
GUI onClose?
Is there a way to detect when a GUI gets closed?
|
You probably can make your own function to check, other than that i'm not sure. :(
|
I'm pretty sure there's a var like CloseQuery = "true"; and I think that calls a function.
|
Quote:
|
Quote:
Edit: Sorry, it's closequery = "true"; but I'm not sure what the function is that is called from this. |
In the future, please post GS2-specific questions in the GS2 forum.
I'm moving this one for you. |
Quote:
|
onClose() doesnt work, I have yet to try onQueryClose().
EDIT: Cant get any of them to work.. |
*bumps*
I kinda still need help with this.. |
Quote:
|
I did, didnt work.
|
Quote:
closequery = true; then use: function WindowName.onCloseQuery() { } Note: If I recall correctly, if you use this method you have to manually call .destroy() in the onCloseQuery() handler. |
Im pretty sure I tried that, but now it works so I must´ve missed something the alst time I tried it.. Thanks Okiesmokie!
|
I thought it was something like this?
PHP Code:
|
You can also use onShow(), onHide(), onWake(), onSleep().
Need to add all events and description to the wiki.graal.net I think |
Quote:
Also, I don't think you have to call obj.destroy() in onClose. Quote:
|
Ok added like all events to the description of the GuiControls at http://wiki.graal.net/index.php/Crea.../Script/Client .
I have also added some variables (rows[], icon etc.) which are not listed by "-listscriptfunctions" and were not mentioned in the wiki before. |
| All times are GMT +2. The time now is 11:09 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.