summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_node.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-08-06 19:00:54 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-08-06 19:00:54 -0300
commit9890c1d2ca76dc936e23f5263a4fd296bfc68996 (patch)
treebe0d304ab3f3b19e3460eee5e0bbdf68d0028f12 /scene/gui/graph_node.h
parent259418f8275371fc2f0bab6892caa4ef66b84240 (diff)
downloadredot-engine-9890c1d2ca76dc936e23f5263a4fd296bfc68996.tar.gz
Likely with bugs and with some features are missing, as well as profiler support, but VisualScript should be more or less done!
Diffstat (limited to 'scene/gui/graph_node.h')
-rw-r--r--scene/gui/graph_node.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/scene/gui/graph_node.h b/scene/gui/graph_node.h
index 3e1729440e..e87fb15b93 100644
--- a/scene/gui/graph_node.h
+++ b/scene/gui/graph_node.h
@@ -34,8 +34,14 @@
class GraphNode : public Container {
OBJ_TYPE(GraphNode,Container);
+public:
-
+ enum Overlay {
+ OVERLAY_DISABLED,
+ OVERLAY_BREAKPOINT,
+ OVERLAY_POSITION
+ };
+private:
struct Slot {
bool enable_left;
@@ -78,6 +84,8 @@ class GraphNode : public Container {
Vector2 drag_from;
bool selected;
+ Overlay overlay;
+
Color modulate;
protected:
@@ -133,10 +141,14 @@ public:
void set_modulate(const Color& p_color);
Color get_modulate() const;
+ void set_overlay(Overlay p_overlay);
+ Overlay get_overlay() const;
+
virtual Size2 get_minimum_size() const;
GraphNode();
};
+VARIANT_ENUM_CAST( GraphNode::Overlay )
#endif // GRAPH_NODE_H