Structured Text: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Dr Eyeball (talk | contribs) (add ampersand operator, formatting layout) |
||
Line 1: | Line 1: | ||
=Description:= | |||
Rich text | 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]] | |||
===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; | |||
=Operators:= | |||
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> | |||
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> | |||
< | Insert an ampersand (&) symbol | ||
<code>&amp;</code> | |||
See [[parseText]] for more operators. | |||
See | |||
[[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
&
See parseText for more operators.