diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2016-08-04 00:05:35 -0300 |
|---|---|---|
| committer | Juan Linietsky <reduzio@gmail.com> | 2016-08-04 00:05:35 -0300 |
| commit | 6ed5d48d0c01c551735121915eb006376269c380 (patch) | |
| tree | f33864bfd32813cc0d5199c5a9c5d0b4533580a5 /scene/gui/graph_edit.h | |
| parent | cd25624667fd2b37abfc605edc06b0345798f46e (diff) | |
| download | redot-engine-6ed5d48d0c01c551735121915eb006376269c380.tar.gz | |
Concluded base visual scripting! can edit but not run though.
Diffstat (limited to 'scene/gui/graph_edit.h')
| -rw-r--r-- | scene/gui/graph_edit.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scene/gui/graph_edit.h b/scene/gui/graph_edit.h index e97d6bcb74..ad20fbefce 100644 --- a/scene/gui/graph_edit.h +++ b/scene/gui/graph_edit.h @@ -33,6 +33,7 @@ #include "scene/gui/scroll_bar.h" #include "scene/gui/slider.h" #include "scene/gui/tool_button.h" +#include "scene/gui/spin_box.h" #include "texture_frame.h" class GraphEdit; @@ -70,6 +71,9 @@ private: ToolButton *zoom_reset; ToolButton *zoom_plus; + ToolButton *snap_button; + SpinBox *snap_amount; + void _zoom_minus(); void _zoom_reset(); void _zoom_plus(); @@ -149,6 +153,8 @@ private: friend class GraphEditFilter; bool _filter_input(const Point2& p_point); + void _snap_toggled(); + void _snap_value_changed(double); protected: static void _bind_methods(); @@ -186,6 +192,11 @@ public: void set_selected(Node* p_child); + void set_use_snap(bool p_enable); + bool is_using_snap() const; + + int get_snap() const; + void set_snap(int p_snap); GraphEdit(); }; |
