summaryrefslogtreecommitdiffstats
path: root/scene/gui/progress_bar.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/progress_bar.h')
-rw-r--r--scene/gui/progress_bar.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/scene/gui/progress_bar.h b/scene/gui/progress_bar.h
index 48daf8d610..2d191b12e6 100644
--- a/scene/gui/progress_bar.h
+++ b/scene/gui/progress_bar.h
@@ -37,6 +37,8 @@ class ProgressBar : public Range {
GDCLASS(ProgressBar, Range);
bool show_percentage = true;
+ bool indeterminate = false;
+ bool editor_preview_indeterminate = false;
struct ThemeCache {
Ref<StyleBox> background_style;
@@ -51,8 +53,12 @@ class ProgressBar : public Range {
protected:
void _notification(int p_what);
+ void _validate_property(PropertyInfo &p_property) const;
+
static void _bind_methods();
+ double indeterminate_min_speed = 200.0;
+
public:
enum FillMode {
FILL_BEGIN_TO_END,
@@ -68,10 +74,18 @@ public:
void set_show_percentage(bool p_visible);
bool is_percentage_shown() const;
+ void set_indeterminate(bool p_indeterminate);
+ bool is_indeterminate() const;
+
+ void set_editor_preview_indeterminate(bool p_indeterminate_preview);
+ bool is_editor_preview_indeterminate_enabled() const;
+
Size2 get_minimum_size() const override;
ProgressBar();
private:
+ float _inderminate_fill_progress = 0;
+
FillMode mode = FILL_BEGIN_TO_END;
};