Fandom

武装突袭 Wiki

Structured Text

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 分享

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

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 编辑

Line breaks can also be inserted via the composeText and lineBreak commands

<br /> 

Image 编辑

Images can also be inserted via the composeText and image commands

<img image='red.paa' />

Color 编辑

In format RGB or ARGB

<t color='#ff0000'>Red text</t>
<t color='#99ffffff'>Transparent white text</t>
<t colorLink='#0000ff'><a href='http://www.arma3.com/'>Blue link</a></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&#160;blog</a>

Notes:编辑

All operator types values should be encapsulated with '', for example, the following will log an .rpt error "Unknown attribute .0" and only 2 would be taken into account:

<t size=2.0>Large text</t>

While the following is correct:

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

A non-break space, commonly known as &nbsp; shows as ? in structured text control. Use alternative which is:&#160;

<t size='2.0'>FIVE&#160;&#160;&#160;&#160;&#160;SPACES</t>

更多维基

随机维基