1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Initialize class variables with default values in scene/ [2/2]

This commit is contained in:
Rafał Mikrut
2021-02-09 18:24:36 +01:00
parent df9c98e107
commit 7961a1dea3
171 changed files with 1007 additions and 1889 deletions

View File

@@ -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();