19#include <unordered_set>
20#include "../TaskSystem/TaskGraphTypes.h"
21#include "../TaskSystem/TaskGraphTemplate.h"
115 const std::string& nodeName,
121 const std::vector<std::pair<std::string, VariableType>>&
dataInputPins,
122 const std::vector<std::pair<std::string, VariableType>>&
dataOutputPins,
161 const std::vector<std::pair<std::string, VariableType>>&
dataInputPins,
162 const std::vector<std::pair<std::string, VariableType>>&
dataOutputPins,
ComponentTypeID GetComponentTypeID_Static()
Stateless helper class for rendering VS nodes via ImNodes.
static void RenderNode(int nodeUID, int nodeID, int graphID, const std::string &nodeName, TaskNodeType type, bool hasBreakpoint, bool isActive, const std::vector< std::string > &execInputPins, const std::vector< std::string > &execOutputPins, const std::vector< std::pair< std::string, VariableType > > &dataInputPins, const std::vector< std::pair< std::string, VariableType > > &dataOutputPins, const std::unordered_set< int > &connectedAttrIDs={})
Renders a complete VS node (title + exec pins + data pins).
VisualScriptNodeRenderer()=delete
static void RenderBreakpointIndicator(int nodeUID)
Renders a breakpoint indicator (red circle) next to a node.
static void RenderActiveNodeGlow(int nodeUID)
Renders a "currently executing" glow overlay around a node.
< Provides AssetID and INVALID_ASSET_ID
const char * GetNodeTypeLabel(TaskNodeType type)
Returns a human-readable label for a TaskNodeType.
VariableType
Type tags used by TaskValue to identify stored data.
VSNodeStyle
Visual style category for a VS node.
@ Action
Orange — AtomicTask.
@ FlowControl
Blue — Branch, Sequence, While, ForEach, DoOnce.
@ SubGraph
Teal — SubGraph call.
@ Delay
Yellow — Delay timer.
@ EntryPoint
Green — single "Out" exec pin.
unsigned int GetNodeTitleHoveredColor(VSNodeStyle style)
Returns the title-bar hovered RGBA colour.
unsigned int GetDataPinColor(VariableType type)
Returns the RGBA colour for a data pin by variable type.
VSNodeStyle GetNodeStyle(TaskNodeType type)
Returns the VSNodeStyle appropriate for a given node type.
const char * GetVariableTypeLabel(VariableType type)
Returns a human-readable label for a VariableType.
TaskNodeType
Identifies the role of a node in the task graph.
unsigned int GetNodeTitleColor(VSNodeStyle style)
Returns the title-bar RGBA colour for a given style.
Full description of a single node in the task graph.