Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-30-2006, 07:58 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
returning objects

PHP Code:
//#CLIENTSIDE
function onCreated()
  {
  echo(
"ll3");
  
this.counter 0;
  }
public function 
adminMsgamsg )
  {
  echo(
"ll4");
  
this.amsg amsg.tokenize("\b");
  
this.awindow _createWindowthis.amsg.size() );
  echo(
"l2: " this.awindow.text);
  
this.awindow.visible true;
  
GUIContainer.addControlthis.awindow );
  }
function 
_createWindowalines )
  {
  
this.windowname "AdminMsg_Window_" this.counter;
  
this.alines alines;
  ( @ 
this.windowname ) = new GuiWindowCtrl();
  
with( ( @ this.windowname ) )
    {
    
visible false;
    
profile "GuiBlueWindowProfile";
    
width 300;
    
height thiso.alines 16 25;
    
screenwidth width 2;
    
screenheight height 2;
    
canClose true;
    
onclosequery=true;
    
thiso.catcheventthis"onCloseQuery""onCloseWindow" );
    
canMinimize canResize canMaximize false;
    
text "Admin Message";
    
canMove true;
    }
  
this.counter++;
  echo( 
"l: " this.windowname );
  echo( 
"l1" @ ( @ this.windowname ).text );
  return ( ( @ 
this.windowname ) );
  }
function 
onCloseWindow()
  {
  
player.chat params[0].text;
  } 
it should return the window object but for some reason it doesnt o.o
output:
Quote:
ll3
ll4
l: AdminMsg_Window_0
l1Admin Message
l2:
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:51 AM.


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