Skip to main content

SuiProgressBar

Variables

int font_size = 25

The size the percentage text should have.

float minimum_value = 0.0

The minimum value this progress bar can display.

float maximum_value = 100.0

The maximum value this progress bar can display.

float value = 50.0

Forwarded from the internal ProgressBar. Will be overriden with the internal bar's value, any changes to this variable will not be reflected (except during _ready).

bool rounded = false

Determines if value should be rounded to the nearest integer.

bool exponential = false

See Range.exp_edit.

bool editor_process = true

Determines if the element should be updated automatically while running in the editor.

bool runtime_process = true

Determines if the element should be updated automatically during your game/application's runtime.

Functions

void update_element()

Updates the element.

void update_value(float value)

Updates the internal bar's value for value. Use this method to update value.