Home>

I'm currently touching imgui, but how does the TreeNode flag ImGuiTreeNodeFlags_NoTreePushOnOpen work?
I don't know, so please let me know.

if (ImGui :: TreeNodeEx ("Tree", ImGuiTreeNodeFlags_NoTreePushOnOpen))
{
    ImGui :: Text ("Text1");
}
ImGui :: Text ("Text2");

Why is Text1 inside the Tree and Text2 outside the Tree when I'm not doing pushTree or popTree?
Is it possible to do that with the if statement alone? I was wondering.