summaryrefslogtreecommitdiffstats
path: root/scene/gui/texture_progress_bar.h
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal@protonmail.com>2021-02-09 18:24:36 +0100
committerRafał Mikrut <mikrutrafal@protonmail.com>2021-02-09 18:24:36 +0100
commit7961a1dea3e7ce8c4e7197a0000e35ab31e9ff2e (patch)
tree9560a84f1300e2466338426f2e267adba6a06a53 /scene/gui/texture_progress_bar.h
parentdf9c98e107b19fc50bc5ae9f7ed624d693c0fb32 (diff)
downloadredot-engine-7961a1dea3e7ce8c4e7197a0000e35ab31e9ff2e.tar.gz
Initialize class variables with default values in scene/ [2/2]
Diffstat (limited to 'scene/gui/texture_progress_bar.h')
-rw-r--r--scene/gui/texture_progress_bar.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/scene/gui/texture_progress_bar.h b/scene/gui/texture_progress_bar.h
index ee33a915f7..a3883a7017 100644
--- a/scene/gui/texture_progress_bar.h
+++ b/scene/gui/texture_progress_bar.h
@@ -98,13 +98,15 @@ public:
TextureProgressBar();
private:
- FillMode mode;
- float rad_init_angle;
- float rad_max_degrees;
+ FillMode mode = FILL_LEFT_TO_RIGHT;
+ float rad_init_angle = 0.0;
+ float rad_max_degrees = 360.0;
Point2 rad_center_off;
- bool nine_patch_stretch;
- int stretch_margin[4];
- Color tint_under, tint_progress, tint_over;
+ bool nine_patch_stretch = false;
+ int stretch_margin[4] = {};
+ Color tint_under = Color(1, 1, 1);
+ Color tint_progress = Color(1, 1, 1);
+ Color tint_over = Color(1, 1, 1);
Point2 unit_val_to_uv(float val);
Point2 get_relative_center();