Structured Text: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(add ampersand operator, formatting layout)
Line 1: Line 1:
'''Description:'''
=Description:=


Rich text, is able to include pictures, formating ...
Rich text is able to include images and formatting.


It can be created using XML like syntax, as seen in [[parseText]].
It can be created using XML like syntax, as seen in [[parseText]].
Line 7: Line 7:
Introduced with Armed Assault, does not refer to Cold War Crisis or Resistance.
Introduced with Armed Assault, does not refer to Cold War Crisis or Resistance.


----
'''Related commands:''' [[parseText]], [[composeText]], [[ctrlSetStructuredText]], [[hintC_structuredText]]
Example


<nowiki>_separator1 = parseText "<br />------------------------<br />";</nowiki>
===Code Examples:===


_image = "\ca\ui\textures\aus_flag.paa";
<nowiki>_separator1 = parseText "<br />------------------------<br />";</nowiki>
_image = "\ca\ui\textures\aus_flag.paa";
_txt = composeText [image _image,"Heading Text",_separator1,"Content"];
hint _txt;


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


hint _txt;
Insert a line break
<code><nowiki><br /></nowiki></code>


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


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


<nowiki><br /></nowiki> - insert a line break
Insert an ampersand (&) symbol
<code>&amp;amp;</code>


<img image=red.paa/> - insert specified image (images can also be inserted via the composeText command)
See [[parseText]] for more operators.
 
<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


[[Category: Data Types]]
[[Category: Data Types]]

Revision as of 02:40, 1 December 2009

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.