Android版as布娃娃系统zip,Label — Godot Engine (latest) 简体中文文档

Property Descriptions¶

Align align

Default

0

Setter

set_align(value)

Getter

get_align()

Controls the text's horizontal align. Supports left, center, right, and fill, or justify. Set it to one of the Align constants.

bool autowrap

Default

false

Setter

set_autowrap(value)

Getter

has_autowrap()

If true, wraps the text inside the node's bounding rectangle. If you resize the node, it will change its height automatically to show all the text.

bool clip_text

Default

false

Setter

set_clip_text(value)

Getter

is_clipping_text()

If true, the Label only shows the text that fits inside its bounding rectangle. It also lets you scale the node down freely.

int lines_skipped

Default

0

Setter

set_lines_skipped(value)

Getter

get_lines_skipped()

The node ignores the first lines_skipped lines before it starts to display text.

int max_lines_visible

Default

-1

Setter

set_max_lines_visible(value)

Getter

get_max_lines_visible()

Limits the lines of text the node shows on screen.

float percent_visible

Default

1.0

Setter

set_percent_visible(value)

Getter

get_percent_visible()

Limits the amount of visible characters. If you set percent_visible to 0.5, only up to half of the text's characters will display on screen. Useful to animate the text in a dialog box.

Default

""

Setter

set_text(value)

Getter

get_text()

The text to display on screen.

bool uppercase

Default

false

Setter

set_uppercase(value)

Getter

is_uppercase()

If true, all the text displays as UPPERCASE.

VAlign valign

Default

0

Setter

set_valign(value)

Getter

get_valign()

Controls the text's vertical align. Supports top, center, bottom, and fill. Set it to one of the VAlign constants.

int visible_characters

Default

-1

Setter

set_visible_characters(value)

Getter

get_visible_characters()

Restricts the number of characters to display. Set to -1 to disable.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值