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 (overrides Control)

float

step

0.01 (overrides Range)

Theme Properties

Color

font_color

Color( 0.94, 0.94, 0.94, 1 )

Color

font_color_shadow

Color( 0, 0, 0, 1 )

Font

font

StyleBox

bg

StyleBox

fg


Property Descriptions

bool percent_visible = true

  • void set_percent_visible ( bool value )

  • bool is_percent_visible ( )

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


Theme Property Descriptions

Color font_color = Color( 0.94, 0.94, 0.94, 1 )

The color of the text.


Color font_color_shadow = Color( 0, 0, 0, 1 )

The color of the text's shadow.


Font font

Font 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).