Structured Text: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (support for hyperlinking) |
Killzone Kid (talk | contribs) (→Hyperlink: & -> &) |
||
Line 58: | Line 58: | ||
<nowiki><a href='http://google.com'>Google</a></nowiki> | <nowiki><a href='http://google.com'>Google</a></nowiki> | ||
<nowiki><a color='#0000FF' href='http://arma3.com'>Arma 3</a></nowiki> | <nowiki><a color='#0000FF' href='http://arma3.com'>Arma 3</a></nowiki> | ||
<nowiki><a underline='true' color='#0000FF' href='http://killzonekid.com'>KK's blog</a></nowiki> | <nowiki><a underline='true' color='#0000FF' href='http://killzonekid.com'>KK's&#160;blog</a></nowiki> | ||
[[Category: Data Types]] | [[Category: Data Types]] |
Revision as of 21:36, 28 July 2014
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
Line break
<br />
Image
Images can also be inserted via the composeText and image commands
<img image='red.paa' />
Color
<t color='#ff0000'>Red text</t> <t color='#99ffffff'>Transparent white text</t>
Size
Default is 1.
<t size='2'> Large text</t>
Font
Font are defined in CfgFontFamilies
<t font='Zeppelin33'>Bold Text</t>
Align
Parameter can be 'left', 'center', 'right'
<t align='center'>Centered Text</t>
Underline
<t underline='true'>Underlined Text</t>
Shadow
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>
Hyperlink
Since ["Arma 3","Arma3",125,126163,"Development"]
<a href='http://google.com'>Google</a> <a color='#0000FF' href='http://arma3.com'>Arma 3</a> <a underline='true' color='#0000FF' href='http://killzonekid.com'>KK's blog</a>