Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-22-2009, 09:05 AM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
You could use:

PHP Code:
new GuiTextEditCtrl("Test") {
  
profile GuiBlueTextEditProfile;
  
10;
  
10;
  
width 100;
  
height 20;
}

function 
Test.onAction() {
  
player.chat Test.gettext();
}

/* .onAction() gets called once the Enter key is pressed inside the GuiTextEditCtrl, .gettext() gets the Text inside it. */ 
Hope it helped, you may want to check the Wiki, it has a nice documentation about GUIs, wiki.graal.net
Reply With Quote
 


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 10:27 PM.


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