|
@@ -54,8 +54,8 @@ class EditorPropertyText : public EditorProperty {
|
|
GDCLASS(EditorPropertyText, EditorProperty);
|
|
GDCLASS(EditorPropertyText, EditorProperty);
|
|
LineEdit *text;
|
|
LineEdit *text;
|
|
|
|
|
|
- bool updating;
|
|
|
|
- bool string_name;
|
|
|
|
|
|
+ bool updating = false;
|
|
|
|
+ bool string_name = false;
|
|
void _text_changed(const String &p_string);
|
|
void _text_changed(const String &p_string);
|
|
void _text_submitted(const String &p_string);
|
|
void _text_submitted(const String &p_string);
|
|
|
|
|
|
@@ -131,9 +131,9 @@ public:
|
|
class EditorPropertyPath : public EditorProperty {
|
|
class EditorPropertyPath : public EditorProperty {
|
|
GDCLASS(EditorPropertyPath, EditorProperty);
|
|
GDCLASS(EditorPropertyPath, EditorProperty);
|
|
Vector<String> extensions;
|
|
Vector<String> extensions;
|
|
- bool folder;
|
|
|
|
- bool global;
|
|
|
|
- bool save_mode;
|
|
|
|
|
|
+ bool folder = false;
|
|
|
|
+ bool global = false;
|
|
|
|
+ bool save_mode = false;
|
|
EditorFileDialog *dialog;
|
|
EditorFileDialog *dialog;
|
|
LineEdit *path;
|
|
LineEdit *path;
|
|
Button *path_edit;
|
|
Button *path_edit;
|
|
@@ -359,7 +359,7 @@ public:
|
|
class EditorPropertyInteger : public EditorProperty {
|
|
class EditorPropertyInteger : public EditorProperty {
|
|
GDCLASS(EditorPropertyInteger, EditorProperty);
|
|
GDCLASS(EditorPropertyInteger, EditorProperty);
|
|
EditorSpinSlider *spin;
|
|
EditorSpinSlider *spin;
|
|
- bool setting;
|
|
|
|
|
|
+ bool setting = false;
|
|
void _value_changed(int64_t p_val);
|
|
void _value_changed(int64_t p_val);
|
|
|
|
|
|
protected:
|
|
protected:
|
|
@@ -410,11 +410,11 @@ class EditorPropertyEasing : public EditorProperty {
|
|
Control *easing_draw;
|
|
Control *easing_draw;
|
|
PopupMenu *preset;
|
|
PopupMenu *preset;
|
|
EditorSpinSlider *spin;
|
|
EditorSpinSlider *spin;
|
|
- bool setting;
|
|
|
|
|
|
+ bool setting = false;
|
|
|
|
|
|
- bool dragging;
|
|
|
|
- bool full;
|
|
|
|
- bool flip;
|
|
|
|
|
|
+ bool dragging = false;
|
|
|
|
+ bool full = false;
|
|
|
|
+ bool flip = false;
|
|
|
|
|
|
enum {
|
|
enum {
|
|
EASING_ZERO,
|
|
EASING_ZERO,
|
|
@@ -450,7 +450,7 @@ public:
|
|
class EditorPropertyVector2 : public EditorProperty {
|
|
class EditorPropertyVector2 : public EditorProperty {
|
|
GDCLASS(EditorPropertyVector2, EditorProperty);
|
|
GDCLASS(EditorPropertyVector2, EditorProperty);
|
|
EditorSpinSlider *spin[2];
|
|
EditorSpinSlider *spin[2];
|
|
- bool setting;
|
|
|
|
|
|
+ bool setting = false;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
|
|
|
|
protected:
|
|
protected:
|
|
@@ -467,7 +467,7 @@ public:
|
|
class EditorPropertyRect2 : public EditorProperty {
|
|
class EditorPropertyRect2 : public EditorProperty {
|
|
GDCLASS(EditorPropertyRect2, EditorProperty);
|
|
GDCLASS(EditorPropertyRect2, EditorProperty);
|
|
EditorSpinSlider *spin[4];
|
|
EditorSpinSlider *spin[4];
|
|
- bool setting;
|
|
|
|
|
|
+ bool setting = false;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
|
|
|
|
protected:
|
|
protected:
|
|
@@ -504,7 +504,7 @@ public:
|
|
class EditorPropertyVector2i : public EditorProperty {
|
|
class EditorPropertyVector2i : public EditorProperty {
|
|
GDCLASS(EditorPropertyVector2i, EditorProperty);
|
|
GDCLASS(EditorPropertyVector2i, EditorProperty);
|
|
EditorSpinSlider *spin[2];
|
|
EditorSpinSlider *spin[2];
|
|
- bool setting;
|
|
|
|
|
|
+ bool setting = false;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
|
|
|
|
protected:
|
|
protected:
|
|
@@ -521,7 +521,7 @@ public:
|
|
class EditorPropertyRect2i : public EditorProperty {
|
|
class EditorPropertyRect2i : public EditorProperty {
|
|
GDCLASS(EditorPropertyRect2i, EditorProperty);
|
|
GDCLASS(EditorPropertyRect2i, EditorProperty);
|
|
EditorSpinSlider *spin[4];
|
|
EditorSpinSlider *spin[4];
|
|
- bool setting;
|
|
|
|
|
|
+ bool setting = false;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
|
|
|
|
protected:
|
|
protected:
|
|
@@ -538,7 +538,7 @@ public:
|
|
class EditorPropertyVector3i : public EditorProperty {
|
|
class EditorPropertyVector3i : public EditorProperty {
|
|
GDCLASS(EditorPropertyVector3i, EditorProperty);
|
|
GDCLASS(EditorPropertyVector3i, EditorProperty);
|
|
EditorSpinSlider *spin[3];
|
|
EditorSpinSlider *spin[3];
|
|
- bool setting;
|
|
|
|
|
|
+ bool setting = false;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
|
|
|
|
protected:
|
|
protected:
|
|
@@ -555,7 +555,7 @@ public:
|
|
class EditorPropertyPlane : public EditorProperty {
|
|
class EditorPropertyPlane : public EditorProperty {
|
|
GDCLASS(EditorPropertyPlane, EditorProperty);
|
|
GDCLASS(EditorPropertyPlane, EditorProperty);
|
|
EditorSpinSlider *spin[4];
|
|
EditorSpinSlider *spin[4];
|
|
- bool setting;
|
|
|
|
|
|
+ bool setting = false;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
|
|
|
|
protected:
|
|
protected:
|
|
@@ -572,7 +572,7 @@ public:
|
|
class EditorPropertyQuaternion : public EditorProperty {
|
|
class EditorPropertyQuaternion : public EditorProperty {
|
|
GDCLASS(EditorPropertyQuaternion, EditorProperty);
|
|
GDCLASS(EditorPropertyQuaternion, EditorProperty);
|
|
EditorSpinSlider *spin[4];
|
|
EditorSpinSlider *spin[4];
|
|
- bool setting;
|
|
|
|
|
|
+ bool setting = false;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
|
|
|
|
protected:
|
|
protected:
|
|
@@ -589,7 +589,7 @@ public:
|
|
class EditorPropertyAABB : public EditorProperty {
|
|
class EditorPropertyAABB : public EditorProperty {
|
|
GDCLASS(EditorPropertyAABB, EditorProperty);
|
|
GDCLASS(EditorPropertyAABB, EditorProperty);
|
|
EditorSpinSlider *spin[6];
|
|
EditorSpinSlider *spin[6];
|
|
- bool setting;
|
|
|
|
|
|
+ bool setting = false;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
|
|
|
|
protected:
|
|
protected:
|
|
@@ -606,7 +606,7 @@ public:
|
|
class EditorPropertyTransform2D : public EditorProperty {
|
|
class EditorPropertyTransform2D : public EditorProperty {
|
|
GDCLASS(EditorPropertyTransform2D, EditorProperty);
|
|
GDCLASS(EditorPropertyTransform2D, EditorProperty);
|
|
EditorSpinSlider *spin[6];
|
|
EditorSpinSlider *spin[6];
|
|
- bool setting;
|
|
|
|
|
|
+ bool setting = false;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
|
|
|
|
protected:
|
|
protected:
|
|
@@ -623,7 +623,7 @@ public:
|
|
class EditorPropertyBasis : public EditorProperty {
|
|
class EditorPropertyBasis : public EditorProperty {
|
|
GDCLASS(EditorPropertyBasis, EditorProperty);
|
|
GDCLASS(EditorPropertyBasis, EditorProperty);
|
|
EditorSpinSlider *spin[9];
|
|
EditorSpinSlider *spin[9];
|
|
- bool setting;
|
|
|
|
|
|
+ bool setting = false;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
|
|
|
|
protected:
|
|
protected:
|
|
@@ -640,7 +640,7 @@ public:
|
|
class EditorPropertyTransform3D : public EditorProperty {
|
|
class EditorPropertyTransform3D : public EditorProperty {
|
|
GDCLASS(EditorPropertyTransform3D, EditorProperty);
|
|
GDCLASS(EditorPropertyTransform3D, EditorProperty);
|
|
EditorSpinSlider *spin[12];
|
|
EditorSpinSlider *spin[12];
|
|
- bool setting;
|
|
|
|
|
|
+ bool setting = false;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
|
|
|
|
protected:
|
|
protected:
|
|
@@ -681,7 +681,7 @@ class EditorPropertyNodePath : public EditorProperty {
|
|
Button *clear;
|
|
Button *clear;
|
|
SceneTreeDialog *scene_tree;
|
|
SceneTreeDialog *scene_tree;
|
|
NodePath base_hint;
|
|
NodePath base_hint;
|
|
- bool use_path_from_scene_root;
|
|
|
|
|
|
+ bool use_path_from_scene_root = false;
|
|
|
|
|
|
Vector<StringName> valid_types;
|
|
Vector<StringName> valid_types;
|
|
void _node_selected(const NodePath &p_path);
|
|
void _node_selected(const NodePath &p_path);
|