From 765df313e065f8401319c68ba70cd41b0bc34c9d Mon Sep 17 00:00:00 2001 From: rtk0c Date: Wed, 12 May 2021 13:23:56 -0700 Subject: Start to work on actually rendering the node graph --- core/src/Model/Workflow/Value.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'core/src/Model/Workflow/Value.hpp') diff --git a/core/src/Model/Workflow/Value.hpp b/core/src/Model/Workflow/Value.hpp index 6cd42f3..8b3e63a 100644 --- a/core/src/Model/Workflow/Value.hpp +++ b/core/src/Model/Workflow/Value.hpp @@ -1,5 +1,8 @@ #pragma once +#include "cplt_fwd.hpp" +#include "Utils/Color.hpp" + #include #include @@ -17,11 +20,18 @@ public: KindCount = InvalidKind, }; + struct KindInfo + { + ImGui::IconType PinIcon; + RgbaColor PinColor; + }; + private: Kind mKind; public: - static const char* FormatKind(Kind kind); + static const KindInfo& QueryInfo(Kind kind); + static const char* Format(Kind kind); static std::unique_ptr CreateByKind(Kind kind); BaseValue(Kind kind); -- cgit v1.2.3-70-g09d2