18#include <unordered_map>
20#include "../third_party/imgui/imgui.h"
ComponentTypeID GetComponentTypeID_Static()
Singleton providing NodeStyle descriptors per NodeType.
const NodeStyle & GetStyleByTaskID(const std::string &taskId) const
Returns the style to use for an atomic-task node identified by ID.
std::unordered_map< int, NodeStyle > m_styles
Key is the underlying int value of NodeType.
static ImU32 GetExecPinColor()
Colour for execution-flow (exec) pins — white.
const NodeStyle & GetStyle(NodeType type) const
Returns the style for the given node type.
static NodeStyleRegistry & Get()
Returns the singleton instance.
std::unordered_map< std::string, NodeStyle > m_vsStyles
Key is the VS type name string (TaskNodeType as string).
static ImU32 GetDataPinColor()
Colour for data pins — green.
const NodeStyle & GetStyleByVSTypeName(const std::string &vsTypeName) const
Returns the style for a VS node type identified by string.
< Provides AssetID and INVALID_ASSET_ID
Visual descriptor for a single node type.
ImU32 headerColor
Title-bar background colour (ImNodes TitleBar colour slot).
ImU32 headerSelectedColor
Title-bar colour when the node is selected.
const char * icon
Short ASCII icon displayed before the node title (no emoji/extended chars).
ImU32 headerHoveredColor
Title-bar colour when the node is hovered.