ProgressBar¶
Inherits: Range < Control < CanvasItem < Node < Object
General-purpose progress bar.
Description¶
General-purpose progress bar. Shows fill percentage from right to left.
Properties¶
|
||
|
Theme Properties¶
|
||
|
||
|
||
|
||
Enumerations¶
enum FillMode:
FILL_BEGIN_TO_END = 0 --- The progress bar fills from begin to end horizontally, according to the language direction. If Control.is_layout_rtl returns
false
, it fills from left to right, and if it returnstrue
, it fills from right to left.FILL_END_TO_BEGIN = 1 --- The progress bar fills from end to begin horizontally, according to the language direction. If Control.is_layout_rtl returns
false
, it fills from right to left, and if it returnstrue
, it fills from left to right.FILL_TOP_TO_BOTTOM = 2 --- The progress fills from top to bottom.
FILL_BOTTOM_TO_TOP = 3 --- The progress fills from bottom to top.
Property Descriptions¶
int fill_mode
Default |
|
Setter |
set_fill_mode(value) |
Getter |
get_fill_mode() |
The fill direction. See FillMode for possible values.
bool percent_visible
Default |
|
Setter |
set_percent_visible(value) |
Getter |
is_percent_visible() |
If true
, the fill percentage is displayed on the bar.
Theme Property Descriptions¶
Color font_color
Default |
|
The color of the text.
Color font_outline_color
Default |
|
The tint of text outline of the ProgressBar
.
Color font_shadow_color
Default |
|
The color of the text's shadow.
int outline_size
Default |
|
The size of the text outline.
Font font
Font used to draw the fill percentage if percent_visible is true
.
int font_size
Font size used to draw the fill percentage if percent_visible is true
.
StyleBox bg
The style of the background.
StyleBox fg
The style of the progress (i.e. the part that fills the bar).