summaryrefslogtreecommitdiff
path: root/editor/editor_properties.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_properties.h')
-rw-r--r--editor/editor_properties.h33
1 files changed, 23 insertions, 10 deletions
diff --git a/editor/editor_properties.h b/editor/editor_properties.h
index 28964df20c..574767890c 100644
--- a/editor/editor_properties.h
+++ b/editor/editor_properties.h
@@ -338,7 +338,7 @@ class EditorPropertyVector2 : public EditorProperty {
GDCLASS(EditorPropertyVector2, EditorProperty)
EditorSpinSlider *spin[2];
bool setting;
- void _value_changed(double p_val);
+ void _value_changed(double p_val, const String &p_name);
protected:
void _notification(int p_what);
@@ -354,7 +354,7 @@ class EditorPropertyRect2 : public EditorProperty {
GDCLASS(EditorPropertyRect2, EditorProperty)
EditorSpinSlider *spin[4];
bool setting;
- void _value_changed(double p_val);
+ void _value_changed(double p_val, const String &p_name);
protected:
void _notification(int p_what);
@@ -370,7 +370,7 @@ class EditorPropertyVector3 : public EditorProperty {
GDCLASS(EditorPropertyVector3, EditorProperty)
EditorSpinSlider *spin[3];
bool setting;
- void _value_changed(double p_val);
+ void _value_changed(double p_val, const String &p_name);
protected:
void _notification(int p_what);
@@ -386,7 +386,7 @@ class EditorPropertyPlane : public EditorProperty {
GDCLASS(EditorPropertyPlane, EditorProperty)
EditorSpinSlider *spin[4];
bool setting;
- void _value_changed(double p_val);
+ void _value_changed(double p_val, const String &p_name);
protected:
void _notification(int p_what);
@@ -402,7 +402,7 @@ class EditorPropertyQuat : public EditorProperty {
GDCLASS(EditorPropertyQuat, EditorProperty)
EditorSpinSlider *spin[4];
bool setting;
- void _value_changed(double p_val);
+ void _value_changed(double p_val, const String &p_name);
protected:
void _notification(int p_what);
@@ -418,7 +418,7 @@ class EditorPropertyAABB : public EditorProperty {
GDCLASS(EditorPropertyAABB, EditorProperty)
EditorSpinSlider *spin[6];
bool setting;
- void _value_changed(double p_val);
+ void _value_changed(double p_val, const String &p_name);
protected:
void _notification(int p_what);
@@ -434,7 +434,7 @@ class EditorPropertyTransform2D : public EditorProperty {
GDCLASS(EditorPropertyTransform2D, EditorProperty)
EditorSpinSlider *spin[6];
bool setting;
- void _value_changed(double p_val);
+ void _value_changed(double p_val, const String &p_name);
protected:
void _notification(int p_what);
@@ -450,7 +450,7 @@ class EditorPropertyBasis : public EditorProperty {
GDCLASS(EditorPropertyBasis, EditorProperty)
EditorSpinSlider *spin[9];
bool setting;
- void _value_changed(double p_val);
+ void _value_changed(double p_val, const String &p_name);
protected:
void _notification(int p_what);
@@ -466,7 +466,7 @@ class EditorPropertyTransform : public EditorProperty {
GDCLASS(EditorPropertyTransform, EditorProperty)
EditorSpinSlider *spin[12];
bool setting;
- void _value_changed(double p_val);
+ void _value_changed(double p_val, const String &p_name);
protected:
void _notification(int p_what);
@@ -499,6 +499,7 @@ class EditorPropertyNodePath : public EditorProperty {
Button *clear;
SceneTreeDialog *scene_tree;
NodePath base_hint;
+ bool use_path_from_scene_root;
Vector<StringName> valid_types;
void _node_selected(const NodePath &p_path);
@@ -511,10 +512,19 @@ protected:
public:
virtual void update_property();
- void setup(const NodePath &p_base_hint, Vector<StringName> p_valid_types);
+ void setup(const NodePath &p_base_hint, Vector<StringName> p_valid_types, bool p_use_path_from_scene_root = true);
EditorPropertyNodePath();
};
+class EditorPropertyRID : public EditorProperty {
+ GDCLASS(EditorPropertyRID, EditorProperty)
+ Label *label;
+
+public:
+ virtual void update_property();
+ EditorPropertyRID();
+};
+
class EditorPropertyResource : public EditorProperty {
GDCLASS(EditorPropertyResource, EditorProperty)
@@ -571,6 +581,9 @@ class EditorPropertyResource : public EditorProperty {
void _button_input(const Ref<InputEvent> &p_event);
void _open_editor_pressed();
+ void _fold_other_editors(Object *p_self);
+
+ bool opened_editor;
protected:
static void _bind_methods();