Structured Text

From Bohemia Interactive Community
Revision as of 21:31, 6 November 2009 by Kronzky (talk | contribs)
Jump to navigation Jump to search

Description:

Rich text, is able to include pictures, formating ...

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.


Example

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

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

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

hint _txt;


Operators:

<br /> - insert a line break

<img image=red.paa/> - insert specified image (images can also be inserted via the composeText command)

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

See this page for more info: http://community.bistudio.com/wiki/parseText