ProgressBar¶
Inherits: Range < Control < CanvasItem < Node < Object
通用进度条。
描述¶
通用进度条。从右向左显示百分比。
属性¶
|
||
size_flags_vertical |
|
|
step |
|
主题属性¶
|
||
|
||
属性说明¶
bool percent_visible
Default |
|
Setter |
set_percent_visible(value) |
Getter |
is_percent_visible() |
为 true
时,将在进度条上显示百分比。
Theme Property Descriptions¶
Color font_color
Default |
|
文本的颜色。
Color font_color_shadow
Default |
|
文本阴影的颜色。
Font font
percent_visible 为 true
时,用于绘制填充百分比的字体。
StyleBox bg
背景的样式。
StyleBox fg
进度的样式(即填充进度条的部分)。