Structured Text

From Bohemia Interactive Community
Revision as of 02:40, 1 December 2009 by Dr Eyeball (talk | contribs) (add ampersand operator, formatting layout)
Jump to navigation Jump to search

Description:

Rich text is able to include images and formatting.

It can be created using XML like syntax, as seen in parseText.

Introduced with Armed Assault, does not refer to Cold War Crisis or Resistance.

Related commands: parseText, composeText, ctrlSetStructuredText, hintC_structuredText

Code Examples:

_separator1 = parseText "<br />------------------------<br />";

_image = "\ca\ui\textures\aus_flag.paa";

_txt = composeText [image _image,"Heading Text",_separator1,"Content"];

hint _txt;

Operators:

Insert a line break <br />

Insert specified image (images can also be inserted via the composeText and image commands) <img image=red.paa/>

Format text between the two tags with the given attributes. Not all attributes need to be specified. <t size='1.2' color='#ffffff00'> </t>

Insert an ampersand (&) symbol &amp;

See parseText for more operators.