|
@@ -465,12 +465,18 @@ void ImGui::ShowDemoWindow(bool* p_open)
|
|
|
ImGui::SameLine(); HelpMarker("Instruct backend to not alter mouse cursor shape and visibility.");
|
|
|
|
|
|
ImGui::CheckboxFlags("io.ConfigFlags: DockingEnable", &io.ConfigFlags, ImGuiConfigFlags_DockingEnable);
|
|
|
- ImGui::SameLine(); HelpMarker("Drag from window title bar or their tab to dock/undock. Hold SHIFT to disable docking.\n\nDrag from window menu button (upper-left button) to undock an entire node (all windows).");
|
|
|
+ ImGui::SameLine();
|
|
|
+ if (io.ConfigDockingWithShift)
|
|
|
+ HelpMarker("Drag from window title bar or their tab to dock/undock. Hold SHIFT to enable docking.\n\nDrag from window menu button (upper-left button) to undock an entire node (all windows).");
|
|
|
+ else
|
|
|
+ HelpMarker("Drag from window title bar or their tab to dock/undock. Hold SHIFT to disable docking.\n\nDrag from window menu button (upper-left button) to undock an entire node (all windows).");
|
|
|
if (io.ConfigFlags & ImGuiConfigFlags_DockingEnable)
|
|
|
{
|
|
|
ImGui::Indent();
|
|
|
ImGui::Checkbox("io.ConfigDockingNoSplit", &io.ConfigDockingNoSplit);
|
|
|
ImGui::SameLine(); HelpMarker("Simplified docking mode: disable window splitting, so docking is limited to merging multiple windows together into tab-bars.");
|
|
|
+ ImGui::Checkbox("io.ConfigDockingWithShift", &io.ConfigDockingWithShift);
|
|
|
+ ImGui::SameLine(); HelpMarker("Enable docking when holding Shift only (allow to drop in wider space, reduce visual noise)");
|
|
|
ImGui::Checkbox("io.ConfigDockingAlwaysTabBar", &io.ConfigDockingAlwaysTabBar);
|
|
|
ImGui::SameLine(); HelpMarker("Create a docking node and tab-bar on single floating windows.");
|
|
|
ImGui::Checkbox("io.ConfigDockingTransparentPayload", &io.ConfigDockingTransparentPayload);
|
|
@@ -5848,6 +5854,7 @@ void ImGui::ShowAboutWindow(bool* p_open)
|
|
|
if (io.ConfigViewportsNoDecoration) ImGui::Text("io.ConfigViewportsNoDecoration");
|
|
|
if (io.ConfigViewportsNoDefaultParent) ImGui::Text("io.ConfigViewportsNoDefaultParent");
|
|
|
if (io.ConfigDockingNoSplit) ImGui::Text("io.ConfigDockingNoSplit");
|
|
|
+ if (io.ConfigDockingWithShift) ImGui::Text("io.ConfigDockingWithShift");
|
|
|
if (io.ConfigDockingAlwaysTabBar) ImGui::Text("io.ConfigDockingAlwaysTabBar");
|
|
|
if (io.ConfigDockingTransparentPayload) ImGui::Text("io.ConfigDockingTransparentPayload");
|
|
|
if (io.ConfigMacOSXBehaviors) ImGui::Text("io.ConfigMacOSXBehaviors");
|
|
@@ -7475,6 +7482,7 @@ static void ShowExampleAppCustomRendering(bool* p_open)
|
|
|
// Note: You can use most Docking facilities without calling any API. You DO NOT need to call DockSpace() to use Docking!
|
|
|
// - Drag from window title bar or their tab to dock/undock. Hold SHIFT to disable docking.
|
|
|
// - Drag from window menu button (upper-left button) to undock an entire node (all windows).
|
|
|
+// - When io.ConfigDockingWithShift == true, you instead need to hold SHIFT to _enable_ docking/undocking.
|
|
|
// About dockspaces:
|
|
|
// - Use DockSpace() to create an explicit dock node _within_ an existing window.
|
|
|
// - Use DockSpaceOverViewport() to create an explicit dock node covering the screen or a specific viewport.
|
|
@@ -7579,8 +7587,9 @@ void ShowExampleAppDockSpace(bool* p_open)
|
|
|
"When docking is enabled, you can ALWAYS dock MOST window into another! Try it now!" "\n"
|
|
|
"- Drag from window title bar or their tab to dock/undock." "\n"
|
|
|
"- Drag from window menu button (upper-left button) to undock an entire node (all windows)." "\n"
|
|
|
- "- Hold SHIFT to disable docking." "\n"
|
|
|
- "This demo app has nothing to do with it!" "\n\n"
|
|
|
+ "- Hold SHIFT to disable docking (if io.ConfigDockingWithShift == false, default)" "\n"
|
|
|
+ "- Hold SHIFT to enable docking (if io.ConfigDockingWithShift == true)" "\n"
|
|
|
+ "This demo app has nothing to do with enabling docking!" "\n\n"
|
|
|
"This demo app only demonstrate the use of ImGui::DockSpace() which allows you to manually create a docking node _within_ another window." "\n\n"
|
|
|
"Read comments in ShowExampleAppDockSpace() for more details.");
|
|
|
|