Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: stuh505 on Thu 15/04/2004 02:03:20

Title: Help getting started with the text parser
Post by: stuh505 on Thu 15/04/2004 02:03:20
how do you clear the text in the text box?  every time it pops up it still has the old text
Title: Re:Help getting started with the text parser
Post by: Darth Mandarb on Thu 15/04/2004 10:13:55
From the manual.

SetTextBoxText

SetTextBoxText (int gui, int object, string newtext)

Changes the text box OBJECT on gui number GUI to contain NEWTEXT. This might be useful to reset the text box to blank after the user has typed something in, or to fill in a default value.

Example:

SetTextBoxText(2,3,"");

will clear the textbox 3 of GUI 2.
Title: Re:Help getting started with the text parser
Post by: stuh505 on Thu 15/04/2004 20:59:39
thanks Darth

in case you thought I was just being lazy and not looking it up (because I noticed you mentioned the manual), let me just say that it is not listed under the text box functions of the built in AGS function index (where I look up most stuff), and also not referenced in any of the text parsing related sections of the un-integrated manual

so its not that im lazy! haha
Title: Re:Help getting started with the text parser
Post by: Darth Mandarb on Thu 15/04/2004 21:43:49
You lazy sod!! :P

Actually, I just quoted 'from the manual', so you'd know where I got the information.  I know there's been times where something was in the manual but I couldn't find it because of how it was worded.

Good luck with the text parser!

I look forward to seeing what you come up with.