You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version/Branch of Dear ImGui:
Version: v1.67 WIP
Branch: master
My Issue/Question:
How can I do an ImGui::Begin stay always on top. I have 2 ImGui::Begins calls and When they cross, one of them draws over the other, I want one to always stay above the other. How can I do that?
Well, Idk if you will understand my explanation, I'll attach a screenshot of the issue in this thread.
The second Begin is drawing above my First Begin:
Thank you and Happy New Year.
The text was updated successfully, but these errors were encountered:
It's unclear from your screenshot what the dear imgui window (Begin calls) correspond to.
You can use GetForegroundDrawList() if all you need is to render ImDrawList primitives, (GetOverlayDrawList in 1.67).
There's no AlwaysOnTop setting for windows but if you have a limited numbers of windows you can use ImGuiWindowFlags_NoBringToFrontOnFocus on the other window as well.
ocornut
changed the title
Make a specific Begin always on top
Make a specific window always on top
Jan 13, 2021
The issue with a using a flag called "Always On Top" is when you have more than one window with the same flag you get an ambiguity. If we expose arbitrary z/depth settings (either as named enums or absolute flexible) it ends to quickly escalate toward extremes (literally toward the top) + it makes sharing code from different sources more difficult. I don't there is one perfect solution to this problem. Maybe we'll expose a finite number of named layer and allow windows within a same layer to be z-reordered.
Version/Branch of Dear ImGui:
Version: v1.67 WIP
Branch: master
My Issue/Question:
How can I do an ImGui::Begin stay always on top. I have 2 ImGui::Begins calls and When they cross, one of them draws over the other, I want one to always stay above the other. How can I do that?
Well, Idk if you will understand my explanation, I'll attach a screenshot of the issue in this thread.
The second Begin is drawing above my First Begin:
Thank you and Happy New Year.
The text was updated successfully, but these errors were encountered: