guiMLTextCtrl.cc help
by Chase Webb · in Torque 2D Beginner · 07/29/2014 (1:05 am) · 5 replies
Hi all! Can someone who understands take a look at guiMLTextCtrl.cc and see how to use the semi-html-like text codes in there to color text? I've had excellent success centering text like this:
But trying something like <color:black> just loads it as if it is regular text instead of code.
I do this because it appears to be the only way to individually change the text color of a guiMLTextCtrl, short of making a new profile for every single differently colored button.
Text="<just:center>" @ %text;
But trying something like <color:black> just loads it as if it is regular text instead of code.
I do this because it appears to be the only way to individually change the text color of a guiMLTextCtrl, short of making a new profile for every single differently colored button.
#2
07/29/2014 (4:58 am)
Awesome, that works perfectly! Any idea how to bold letters? I wish there was a guide for the text commands available and how to use them.
#3
When you first visit the link you'll need to click on the "Click here to login" link in the center of the content page and then click on the above link again to actually view the page since TDN and actual GarageGames site have a bit of a disconnect in regards to handling of account sessions.
07/29/2014 (6:34 am)
The only place I could find detailed documentation for Torque Markup Language is from the old Torque Developer Network (old wiki site).When you first visit the link you'll need to click on the "Click here to login" link in the center of the content page and then click on the above link again to actually view the page since TDN and actual GarageGames site have a bit of a disconnect in regards to handling of account sessions.
#4
07/29/2014 (7:18 am)
A guide would be cool - but you can dig them out of GuiMLTextCtrl::reflow(), down around line 1700-ish....
#5
http://tdn.garagegames.com/wiki/GUI/TorqueML
07/29/2014 (9:02 am)
Oooh, you're right, the old TDN has a full explanation of everything. Maybe if I can ever figure out how to submit additions to the Github wiki I'll transfer this info there. http://tdn.garagegames.com/wiki/GUI/TorqueML
Associate Mike Lilligreen
Retired T2Der