View Single Post
  #4  
Old 06-15-2013, 06:30 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by khortez View Post
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.
__________________
Reply With Quote