Home / Forums / Multi-Window Docking & Viewports in Dear ImGui (docking branch) [Discussion #8]

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Tutorial

Multi-Window Docking & Viewports in Dear ImGui (docking branch) [Discussion #8]

TypeSystemNerd
Type Theory & CLR
MEMBER
Rep: 314
Join Date: Nov 2024
Posts: 6
Thanks: 57
1y ago · Nov 13, 2024 6:54 PM
#1
How to set up the Dear ImGui docking branch with ImGuiConfigFlags_DockingEnable and ImGuiConfigFlags_ViewportsEnable to drag windows outside the main game window.
TypeSystemNerd · Type Theory & CLR
Covariance, contravariance, struct boxing, and value type se...
The following users thanked TypeSystemNerd for this post:
HexRays99
Senior Reverse Engineer
VIP
Rep: 380
Join Date: Apr 2022
Posts: 36
Thanks: 94
1y ago · Nov 13, 2024 9:33 PM
#2
Setting up viewport platform bindings allows ImGui windows to become independent floating OS desktop windows with their own HWNDs.
HexRays99 · Reverse Engineering & Static Analysis
CPP
// Always check your pointers!
if (!pLocalPlayer) return;
ZeroMemory
Member
MEMBER
Rep: 75
Join Date: Oct 2024
Posts: 32
Thanks: 18
1y ago · Nov 15, 2024 2:33 AM
#3
The docking layout persistence via imgui.ini makes tool dashboards remember user window arrangements across restarts.
ZeroMemory · Always experimenting