From 8359d2a8f075e9c7efdf387b2f9e7d54f3e513e7 Mon Sep 17 00:00:00 2001 From: Archez Date: Sat, 14 Sep 2024 23:45:10 -0400 Subject: [PATCH] Update entrance tracker settings window for modern menu changes --- .../randomizer/randomizer_entrance_tracker.cpp | 9 --------- soh/soh/SohGui.cpp | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/soh/soh/Enhancements/randomizer/randomizer_entrance_tracker.cpp b/soh/soh/Enhancements/randomizer/randomizer_entrance_tracker.cpp index 09602e917..4cf9d623a 100644 --- a/soh/soh/Enhancements/randomizer/randomizer_entrance_tracker.cpp +++ b/soh/soh/Enhancements/randomizer/randomizer_entrance_tracker.cpp @@ -640,13 +640,6 @@ void InitEntranceTrackingData() { } void EntranceTrackerSettingsWindow::DrawElement() { - ImGui::SetNextWindowSize(ImVec2(600, 375), ImGuiCond_FirstUseEver); - - if (!ImGui::Begin("Entrance Tracker Settings", &mIsVisible, ImGuiWindowFlags_NoFocusOnAppearing)) { - ImGui::End(); - return; - } - if (ImGui::BeginTable("entranceTrackerSettings", 1, ImGuiTableFlags_BordersInnerH)) { ImGui::TableNextColumn(); @@ -718,8 +711,6 @@ void EntranceTrackerSettingsWindow::DrawElement() { ImGui::EndTable(); } - - ImGui::End(); } void EntranceTrackerWindow::Draw() { diff --git a/soh/soh/SohGui.cpp b/soh/soh/SohGui.cpp index 13b58f48f..4bef8cea6 100644 --- a/soh/soh/SohGui.cpp +++ b/soh/soh/SohGui.cpp @@ -193,7 +193,7 @@ namespace SohGui { gui->AddGuiWindow(mCheckTrackerSettingsWindow); mEntranceTrackerWindow = std::make_shared(CVAR_WINDOW("EntranceTracker"), "Entrance Tracker"); gui->AddGuiWindow(mEntranceTrackerWindow); - mEntranceTrackerSettingsWindow = std::make_shared(CVAR_WINDOW("EntranceTrackerSettings"), "Entrance Tracker Settings"); + mEntranceTrackerSettingsWindow = std::make_shared(CVAR_WINDOW("EntranceTrackerSettings"), "Entrance Tracker Settings", ImVec2(600, 375)); gui->AddGuiWindow(mEntranceTrackerSettingsWindow); mItemTrackerWindow = std::make_shared(CVAR_WINDOW("ItemTracker"), "Item Tracker"); gui->AddGuiWindow(mItemTrackerWindow);