Thread: Gui Scripting
View Single Post
  #11  
Old 08-24-2006, 04:18 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Twinny
PHP Code:
//#CLIENTSIDE
function onCreated(){
  
TwinnyTest.destroy//No need to reconnect after each update now
  
drawgui();
}

function 
drawgui(){
  
Testing = new GuiWindowCtrl(TwinnyTest); //Sets the name of the window
  
with (TwinnyTest) {
    
// ..

Assigning the variable testing is irrelevant. What you did can be accomplished in one line.
PHP Code:
function drawgui() {
  new 
GuiWindowCtrl("TwinnyTest") {
    
// ..
  
}

__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote