From b2b7cf23747bc78d9e791fdda1946f0879e5e60c Mon Sep 17 00:00:00 2001 From: KiritoDev <36680385+KiritoDv@users.noreply.github.com> Date: Wed, 13 Jul 2022 23:42:15 -0500 Subject: [PATCH] Fixed menubar items position (#763) * Fixed menubar items position * Reverted tooltip tab position --- libultraship/libultraship/ImGuiImpl.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/libultraship/libultraship/ImGuiImpl.cpp b/libultraship/libultraship/ImGuiImpl.cpp index dd172118d15..153a193e8d3 100644 --- a/libultraship/libultraship/ImGuiImpl.cpp +++ b/libultraship/libultraship/ImGuiImpl.cpp @@ -736,6 +736,10 @@ namespace SohImGui { ImGui::EndMenu(); } + ImGui::Separator(); + + ImGui::SetCursorPosY(0.0f); + if (ImGui::BeginMenu("Audio")) { EnhancementSliderFloat("Master Volume: %d %%", "##Master_Vol", "gGameMasterVolume", 0.0f, 1.0f, "", 1.0f, true); @@ -747,6 +751,8 @@ namespace SohImGui { ImGui::EndMenu(); } + ImGui::SetCursorPosY(0.0f); + if (ImGui::BeginMenu("Controller")) { EnhancementCheckbox("Use Controller Navigation", "gControlNav"); @@ -775,6 +781,8 @@ namespace SohImGui { ImGui::EndMenu(); } + ImGui::SetCursorPosY(0.0f); + if (ImGui::BeginMenu("Graphics")) { EnhancementSliderFloat("Internal Resolution: %d %%", "##IMul", "gInternalResolution", 0.5f, 2.0f, "", 1.0f, true); @@ -823,6 +831,8 @@ namespace SohImGui { ImGui::EndMenu(); } + ImGui::SetCursorPosY(0.0f); + if (ImGui::BeginMenu("Languages")) { EnhancementRadioButton("English", "gLanguages", 0); EnhancementRadioButton("German", "gLanguages", 1); @@ -830,6 +840,8 @@ namespace SohImGui { ImGui::EndMenu(); } + ImGui::SetCursorPosY(0.0f); + if (ImGui::BeginMenu("Enhancements")) { if (ImGui::BeginMenu("Gameplay")) @@ -1154,6 +1166,8 @@ namespace SohImGui { ImGui::EndMenu(); } + ImGui::SetCursorPosY(0.0f); + if (ImGui::BeginMenu("Cheats")) { if (ImGui::BeginMenu("Infinite...")) { @@ -1191,6 +1205,8 @@ namespace SohImGui { ImGui::EndMenu(); } + ImGui::SetCursorPosY(0.0f); + if (ImGui::BeginMenu("Developer Tools")) { EnhancementCheckbox("OoT Debug Mode", "gDebugEnabled"); @@ -1211,6 +1227,7 @@ namespace SohImGui { } for (const auto& category : windowCategories) { + ImGui::SetCursorPosY(0.0f); if (ImGui::BeginMenu(category.first.c_str())) { for (const std::string& name : category.second) { std::string varName(name);