Structured Text: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(started writing a listing of available operators. There is a list in the parseText comand, but it would be better to put it here. Help / formatting would be appreciated.)
mNo edit summary
Line 22: Line 22:
Operators:
Operators:


<br /> - insert a line break
<nowiki><br /></nowiki> - insert a line break


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

Revision as of 20:31, 6 November 2009

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