Skip to content

Commit

Permalink
add node type tag to imgui widgets
Browse files Browse the repository at this point in the history
I wish we could have inline color commands to make the type darker, but
that doesn't exist (yet) without custom solutions

ocornut/imgui#902
  • Loading branch information
ahota committed Jul 15, 2021
1 parent 62d9f74 commit 870cefb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sg/visitors/GenerateImGuiWidgets.h
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ inline GenerateImGuiWidgets::GenerateImGuiWidgets(TreeState state, bool &u)

inline bool GenerateImGuiWidgets::operator()(Node &node, TraversalContext &ctx)
{
std::string widgetName = node.name();
std::string widgetName = node.name() + " [" + node.subType() + "]";

// Skip any nodes set to not show in the UI, and don't process children
if (node.sgNoUI())
Expand Down

0 comments on commit 870cefb

Please sign in to comment.