ProgressBar

Inherits: Range < Control < CanvasItem < Node < Object

General-purpose progress bar.

Description

General-purpose progress bar. Shows fill percentage from right to left.

Properties

bool

percent_visible

true

int

size_flags_vertical

0 (parent override)

float

step

0.01 (parent override)

Theme Properties

StyleBox

bg

StyleBox

fg

Font

font

Color

font_color

Color(0.94, 0.94, 0.94, 1)

Color

font_outline_color

Color(1, 1, 1, 1)

Color

font_shadow_color

Color(0, 0, 0, 1)

int

font_size

int

outline_size

0

Property Descriptions

  • bool percent_visible

Default

true

Setter

set_percent_visible(value)

Getter

is_percent_visible()

If true, the fill percentage is displayed on the bar.

Theme Property Descriptions

The style of the background.


The style of the progress (i.e. the part that fills the bar).


Font used to draw the fill percentage if percent_visible is true.


Default

Color(0.94, 0.94, 0.94, 1)

The color of the text.


  • Color font_outline_color

Default

Color(1, 1, 1, 1)

The tint of text outline of the ProgressBar.


  • Color font_shadow_color

Default

Color(0, 0, 0, 1)

The color of the text's shadow.


  • int font_size

Font size used to draw the fill percentage if percent_visible is true.


  • int outline_size

Default

0

The size of the text outline.