diff --git a/libultraship/libultraship/SohImGuiImpl.cpp b/libultraship/libultraship/SohImGuiImpl.cpp index f6e41fb6ee6..81c115caaa4 100644 --- a/libultraship/libultraship/SohImGuiImpl.cpp +++ b/libultraship/libultraship/SohImGuiImpl.cpp @@ -861,7 +861,7 @@ namespace SohImGui { Tooltip("Displays an icon and plays a sound when Stone of Agony should be activated, for those without rumble"); EnhancementCheckbox("Faster Block Push", "gFasterBlockPush"); EnhancementCheckbox("Assignable Tunics and Boots", "gAssignableTunicsAndBoots"); - Tooltip("Allows equiping the tunic and boots to c-buttons"); + Tooltip("Allows equipping the tunic and boots to c-buttons"); EnhancementCheckbox("MM Bunny Hood", "gMMBunnyHood"); Tooltip("Wearing the Bunny Hood grants a speed increase like in Majora's Mask"); EnhancementCheckbox("Fast Chests", "gFastChests"); @@ -1011,7 +1011,7 @@ namespace SohImGui { } if (ImGui::BeginMenu("Cosmetics")) { - EnhancementCheckbox("Cosmetics editor", "gCosmticsEditor"); + EnhancementCheckbox("Cosmetics editor", "gCosmeticEditor"); Tooltip("Edit Navi and Link's Tunics color."); EnhancementCheckbox("HUD Margins editor", "gUseMargins"); EnhancementRadioButton("N64 interface", "gHudColors", 0); @@ -1068,7 +1068,7 @@ namespace SohImGui { if (CVar_GetS32("gSkipLogoTitle",0)) { EnhancementSliderInt("Loading %d", "##SaveFileID", "gSaveFileID", 0, 4, ""); } - ImGui::Separator(); + ImGui::Separator(); EnhancementCheckbox("Stats", "gStatsEnabled"); Tooltip("Shows the stats window, with your FPS and frametimes, and the OS you're playing on"); EnhancementCheckbox("Console", "gConsoleEnabled"); @@ -1079,14 +1079,15 @@ namespace SohImGui { } bool Margins_isOpen = CVar_GetS32("gUseMargins", 0); - bool Cosmetics_isOpen = CVar_GetS32("gCosmticsEditor", 0); + bool Cosmetics_isOpen = CVar_GetS32("gCosmeticEditor", 0); bool Interface_isOpen = CVar_GetS32("gColorsEditor", 0); if (Margins_isOpen) { if (!Margins_isOpen) { + CVar_SetS32("gHUDMargins", 0); return; } - ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0, 0, 0, 0)); + ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver); ImGui::Begin("Margins Editor", nullptr, ImGuiWindowFlags_NoFocusOnAppearing); if (ImGui::BeginTabBar("Margins Editor", ImGuiTabBarFlags_NoCloseWithMiddleMouseButton)) { if (ImGui::BeginTabItem("Interface margins")) { @@ -1100,14 +1101,14 @@ namespace SohImGui { } ImGui::EndTabBar(); } - ImGui::PopStyleColor(); ImGui::End(); } if (Cosmetics_isOpen) { if (!Cosmetics_isOpen) { + CVar_SetS32("gCosmeticEditor", 0); return; } - ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0, 0, 0, 0)); + ImGui::SetNextWindowSize(ImVec2(500, 627), ImGuiCond_FirstUseEver); ImGui::Begin("Cosmetics Editor", nullptr, ImGuiWindowFlags_NoFocusOnAppearing); if (ImGui::BeginTabBar("Cosmetics Editor", ImGuiTabBarFlags_NoCloseWithMiddleMouseButton)) { if (ImGui::BeginTabItem("Navi")) { @@ -1146,14 +1147,14 @@ namespace SohImGui { } ImGui::EndTabBar(); } - ImGui::PopStyleColor(); ImGui::End(); } if (Interface_isOpen) { if (!Interface_isOpen) { + CVar_SetS32("gColorsEditor", 0); return; } - ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0, 0, 0, 0)); + ImGui::SetNextWindowSize(ImVec2(215, 627), ImGuiCond_FirstUseEver); ImGui::Begin("Interface Editor", nullptr, ImGuiWindowFlags_NoFocusOnAppearing); if (ImGui::BeginTabBar("Interface Editor", ImGuiTabBarFlags_NoCloseWithMiddleMouseButton)) { if (ImGui::BeginTabItem("Hearts")) { @@ -1194,7 +1195,6 @@ namespace SohImGui { } ImGui::EndTabBar(); } - ImGui::PopStyleColor(); ImGui::End(); } diff --git a/soh/soh/Enhancements/debugger/colViewer.cpp b/soh/soh/Enhancements/debugger/colViewer.cpp index f5c283aac98..40dc90201d0 100644 --- a/soh/soh/Enhancements/debugger/colViewer.cpp +++ b/soh/soh/Enhancements/debugger/colViewer.cpp @@ -6,6 +6,7 @@ #include #include #include +#include extern "C" { #include @@ -94,6 +95,7 @@ void DrawColorPicker(const std::string& name, uint32_t& color) { // Draws the ImGui window for the collision viewer void DrawColViewerWindow(bool& open) { if (!open) { + CVar_SetS32("gCollisionViewerEnabled", 0); return; } diff --git a/soh/soh/Enhancements/debugger/debugSaveEditor.cpp b/soh/soh/Enhancements/debugger/debugSaveEditor.cpp index a0d27f70fab..d243ce49a48 100644 --- a/soh/soh/Enhancements/debugger/debugSaveEditor.cpp +++ b/soh/soh/Enhancements/debugger/debugSaveEditor.cpp @@ -7,6 +7,7 @@ #include #include #include +#include extern "C" { #include @@ -1544,6 +1545,7 @@ void DrawPlayerTab() { void DrawSaveEditor(bool& open) { if (!open) { + CVar_SetS32("gSaveEditorEnabled", 0); return; }