Class reference

ProgressBar

Inherits Range

A control used for visual representation of a percentage.

Description

A control used for visual representation of a percentage. Shows the fill percentage in the center. Can also be used to show indeterminate progress. For more fill modes, use TextureProgressBar instead.

Properties

bool editor_preview_indeterminate

If false, the indeterminate animation will be paused in the editor.

int fill_mode = 0

The fill direction. See FillMode for possible values.

bool indeterminate = false

When set to true, the progress bar indicates that something is happening with an animation, but does not show the fill percentage or value.

bool show_percentage = true

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

Constants

FILL_BEGIN_TO_END = 0

Enum: FillMode

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 returns true, it fills from right to left.

FILL_END_TO_BEGIN = 1

Enum: FillMode

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 returns true, it fills from left to right.

FILL_TOP_TO_BOTTOM = 2

Enum: FillMode

The progress fills from top to bottom.

FILL_BOTTOM_TO_TOP = 3

Enum: FillMode

The progress fills from bottom to top.

Theme properties

Color font_color = Color(0.95, 0.95, 0.95, 1)

The color of the text.

Color font_outline_color = Color(0, 0, 0, 1)

The tint of text outline of the ProgressBar.

StyleBox background

The style of the background.

StyleBox fill

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

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.