Game Development Community

Multi Line Text?

by Felipe Maia · in Torque X 2D · 09/06/2007 (7:39 am) · 5 replies

Is it possible to write multi line text on the screen with just a command? It doesn't matter wheter it's GUIText or DrawUtil, I just want multi line text.

#1
09/06/2007 (8:56 am)
Look into the GuiMLTextCtrl. It is a multi-line text box that has an HTML-like markup language for changing the look of the text.
#2
09/06/2007 (9:07 am)
Where did you find GuiMLTextCtrl?
It is neither in the API doc nor in the Torque.GUI namespace.
#3
09/06/2007 (9:11 am)
I think that control is a TGB resource, you'd have to recreate it in TX.

I made a TorqueX GUI control called GUITypewriter, that writes out text on the screen, also supports multiline input.

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=13153
#4
09/06/2007 (3:27 pm)
Also, we have a multi-line text control with automatic scrolling controlled by gamepad or keyboard in the next release (1.5?).

@Josh: Nice work. ;)
#5
09/10/2007 (6:28 am)
Thank you for the help Josh, I edited your control and all went well :D