pkdawson / imgui-godot

Dear ImGui plugin for Godot 4
MIT License
318 stars 18 forks source link

BringWindowToDisplayFront #70

Open WladekProd opened 3 days ago

WladekProd commented 3 days ago

Is there any possibility to make a particular window always on top of other windows so that it does not overlap with other windows ? This is the only flag I've found so far: ImGuiWindowFlags_NoBringToFrontOnFocus

But as it turned out in ImGui there is also such a solution, but it is not in the plugin:

if (ImGui::IsWindowAppearing())
    ImGui::BringWindowToDisplayFront(ImGui::GetCurrentWindow());
pkdawson commented 3 days ago

BringWindowToDisplayFront is an internal API, which is why it's not in the GDScript bindings. It's not in ImGui.NET either.

For normal ImGui windows, it looks like there isn't any great solution.

For multi-viewport windows, there actually is ImGuiViewportFlags_TopMost, but it's something I haven't implemented yet.

WladekProd commented 2 days ago

BringWindowToDisplayFront is an internal API, which is why it's not in the GDScript bindings. It's not in ImGui.NET either.

For normal ImGui windows, it looks like there isn't any great solution.

For multi-viewport windows, there actually is ImGuiViewportFlags_TopMost, but it's something I haven't implemented yet.

Would be really great if there was such a realization. I'm looking forward to it, thanks!