Quote:
Originally Posted by khortez
thanks though is this necessary?
PHP Code:
function onCreated() {
if (isObject("GUI_Inventory")) {
GUI_Inventory.destroy();
}
}
some parts of your script i'm still unfamiliar with. mainly GraalControl, even though it sounds self-explanatory its not something i've gone over very well before.
|
No, it's not necessary. All it does is destroy the window if it already exists. Useful during development but should be taken out when you're ready to release it.
GraalControl is basically just a GUI object which contains the game. All he's doing is centering the window.