Structured Text: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Wiki texts should not be signed.)
m (corrected linebreaks (<br/>), added a valid image path (V1.08))
Line 10: Line 10:
Example
Example


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


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


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

Revision as of 16:49, 30 September 2007

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;