From 9890c1d2ca76dc936e23f5263a4fd296bfc68996 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 6 Aug 2016 19:00:54 -0300 Subject: Likely with bugs and with some features are missing, as well as profiler support, but VisualScript should be more or less done! --- scene/gui/graph_node.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'scene/gui/graph_node.h') 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 -- cgit v1.2.3