Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-09-2006, 09:40 PM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
GuiTextEdit

This might be a simple question but i cant figure it out.

When im doing an onAction from a button, how can I get the value that a player has entered in the TextEdit section?
Reply With Quote
  #2  
Old 11-09-2006, 10:17 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by Andy0687 View Post
This might be a simple question but i cant figure it out.

When im doing an onAction from a button, how can I get the value that a player has entered in the TextEdit section?
If you make names like

TextEdit#-WINDOWID
Button#-WINDOWID

# being TextEdit0 | TextEdit1 etc

then you can cut the catchevent down ex:

PHP Code:
function onActionButton(temp.bname)
{
  
temp.windowid temp.bname.substring(temp.bname.pos("-") + 1);
  
temp.text makevar("TextEdit0-" temp.windowid).text;

I guess..
Reply With Quote
  #3  
Old 11-09-2006, 10:29 PM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Quote:
Originally Posted by KuJi View Post
temp.text = makevar("TextEdit0-" @ temp.windowid).text;
Ugh .text on the end lol, i knew it was going to be simple, thats all I really needed, thanks.
Reply With Quote
  #4  
Old 11-09-2006, 10:31 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by Andy0687 View Post
Ugh .text on the end lol, i knew it was going to be simple, thats all I really needed, thanks.
Haha.. just need the obj.text.

Thought you mean how to find using catchevent =p
Reply With Quote
Reply


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 03:45 PM.


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