-
Notifications
You must be signed in to change notification settings - Fork 523
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
ImGui::ColorEdit4 popups don't work inside a node #242
Comments
You can have inside of the node's body
outside of the node's body ed::Suspend();
if(openPopup) {
ImGui::OpenPopup("picker");
}
ed::Resume();
ed::Suspend();
if(ImGui::BeginPopup("picker")) {
//...
ImGui::EndPopup();
}
ed::Resume(); |
The same thing has to be done for combo widgets. It starts being annoying. And for the combo popups, I don't think it works. The popup window position is weird, probably because I've done something wrong. @thedmd any idea how to bypass it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a node that has an
ImGui::ColorEdit4
inside its body.The number input fields work normally, but the tooltip, color picker and right click option popups don't work. They get positioned in the wrong place and have weird interactions with the mouse.
I know that in order to make the popups work, I should suspend the editor before rendering them, but these popups are handled inside the
ImGui::ColorEdit4
function, and I can't call this outside the node.Is there any way to make these popups work?
The text was updated successfully, but these errors were encountered: