summaryrefslogtreecommitdiff
path: root/editor/editor_properties.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-05-17 19:41:25 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-05-17 19:41:49 -0300
commitc5182a580a292327583b92c17a53cf6cc85d133d (patch)
tree7836df66bdf25a00396eba8b729afcf192124524 /editor/editor_properties.h
parent2aafd928317776c0e896d6c2d3f019d4ce800c98 (diff)
Working Drag & Drop again in inspector
Diffstat (limited to 'editor/editor_properties.h')
-rw-r--r--editor/editor_properties.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/editor_properties.h b/editor/editor_properties.h
index 7cd94f25f8..19884cc9dc 100644
--- a/editor/editor_properties.h
+++ b/editor/editor_properties.h
@@ -484,6 +484,7 @@ class EditorPropertyResource : public EditorProperty {
EditorInspector *sub_inspector;
bool use_sub_inspector;
+ bool dropping;
String base_type;
SceneTreeDialog *scene_tree;
@@ -500,6 +501,12 @@ class EditorPropertyResource : public EditorProperty {
void _sub_inspector_resource_selected(const RES &p_resource, const String &p_property);
void _sub_inspector_object_id_selected(int p_id);
+ void _button_draw();
+ Variant get_drag_data_fw(const Point2 &p_point, Control *p_from);
+ bool _is_drop_valid(const Dictionary &p_drag_data) const;
+ bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const;
+ void drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from);
+
protected:
static void _bind_methods();
void _notification(int p_what);