Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-18-2006, 04:39 AM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
GuiTextMLCtrl.text new line?

in the GuiTextMLCtrl
the .text attribute

neither the <br> tag nor NL such as

textbox.text = "foo" NL "bar";

work to create a new line in the text box ....

so, how do I insert a line break in a gui text box?
Reply With Quote
  #2  
Old 05-18-2006, 04:52 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
<br> works for me...

PHP Code:
obj.setText("Line1<br>Line2"); 
I think even this will work (is just a bit ugly):
PHP Code:
temp.txt =
"Line1
Line2"
;
obj.setText(temp.txt); 
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 05-18-2006, 04:56 AM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
hey ya ... ok thanks man. i got it workin now. even with the text being recieved through a triggeraction from the item desciption of a weapon - the description being in the weapon, and the item equip (q menu) being a gui system.
i'm all set.
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 07:16 PM.


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