Closed cipperly closed 2 years ago
Hi cipperly, thanks for the report. I agree that this is indeed an issue. We are still very much in the early phases of learning how to use ImGui with the SDK and have not worked out all the kinks yet. None of our SDK examples use ImGui::TreeNode, but with the number of flags available it's possible we wouldn't have noticed the issue anyway. I will get this added to the SDK soon.
Thanks Martin. I'm glad you guys added ImGui support to SIMDIS SDK; makes it possible to create an application with UI using the SDK without needing an external UI framework.
In my testing with using ImGui with SIMDIS SDK, I have found that it is not processing mouse double clicks correctly. OsgImGuiHandler.cpp has this:
which I have found needs to be the following so that g.IO.MouseClickedCount gets set correctly in ImGui:
This can be tested by adding the following to the draw method in any example that uses ImGui:
And double click on the tree nodes to expand/collapse the node.
Test environment: OS: Windows 10 x64 Compiler: Visual Studio 2019
I am also using the latest version of the ImGui docking branch in my testing.
Thanks.