Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas on nodes #178

Open
system64MC opened this issue Mar 4, 2023 · 3 comments
Open

Canvas on nodes #178

system64MC opened this issue Mar 4, 2023 · 3 comments

Comments

@system64MC
Copy link

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

@JosephXQ2021
Copy link

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

@championAI
Copy link

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

@navyenzo
Copy link

@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_node_contents_ = !show_node_contents_;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants