From adb13652000346c9e20209f11af953291fb07790 Mon Sep 17 00:00:00 2001 From: Adam Bird Date: Tue, 15 Nov 2022 01:02:48 -0500 Subject: [PATCH] add a toggle for multi viewports in imgui (#1896) --- soh/soh/GameMenuBar.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/soh/soh/GameMenuBar.cpp b/soh/soh/GameMenuBar.cpp index 9f82bb250..0a09e5122 100644 --- a/soh/soh/GameMenuBar.cpp +++ b/soh/soh/GameMenuBar.cpp @@ -686,6 +686,11 @@ namespace GameMenuBar { ImGui::PopStyleVar(1); } + if (SohImGui::supportsViewports()) { + UIWidgets::PaddedEnhancementCheckbox("Allow multi-windows", "gEnableMultiViewports", true, false); + UIWidgets::Tooltip("Allows windows to be able to be dragged off of the main game window. Requires a reload to take effect."); + } + EXPERIMENTAL(); ImGui::Text("Texture Filter (Needs reload)");