Difference between revisions of "Structured Text"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Operators)
m (Structured text does not support 'marker' tag, only diary record does (see createDiaryRecord))
Line 27: Line 27:
Images can also be inserted via the [[composeText]] and [[image]] commands
Images can also be inserted via the [[composeText]] and [[image]] commands
  <img image='red.paa' />
  <img image='red.paa' />
=== Marker link ===
<nowiki><marker name='markername'>Link to Marker</marker></nowiki>
=== Color ===
=== Color ===

Revision as of 23:41, 24 July 2013


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;


Line break

<br /> 


Images can also be inserted via the composeText and image commands

<img image='red.paa' />


In format RGB or ARGB

<t color='#ff0000'>Red text</t>
<t color='#99ffffff'>Transparent white text</t>


Default is 1.

<t size='2'> Large text</t>


Font are defined in CfgFontFamilies

<t font='Zeppelin33'>Bold Text</t>


Parameter can be 'left', 'center', 'right'

<t align='center'>Centered Text</t>


<t underline='true'>Underlined Text</t>


Parameter can be '0' (no shadow), '1' (classic shadow, can be colored), '2' outline (always black)

<t shadow='1'>Text with shadow</t>
<t shadow='1' shadowColor='#ff0000'>Text with red Shadow</t>
<t shadow='2'>Text with outline</t>