Nelarius / imnodes

A small, dependency-free node editor for dear imgui
MIT License
1.94k stars 237 forks source link

Canvas on nodes #178

Open system64MC opened 1 year ago

system64MC commented 1 year ago

Hi, is it possible to have a canvas inside of a node? If yes, how? Thanks for your answer!

JosephXQ2021 commented 10 months ago

I think u can do this by choose witch node to show while double click the node

championAI commented 8 months ago

@JosephXQ2021 Hi , do you know how to catch a double click node event?thanks

navyenzo commented 5 months ago

@JosephXQ2021 Hi , do you know how to catch a double click node event?thanks

yes, it's as simple as this:

// Double clicking on the node will make it collapse/expand if(ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) { show_nodecontents = !show_nodecontents; }