From 1744f1fc1842cc1a440138f88849e0fde6048f8a Mon Sep 17 00:00:00 2001 From: Malkierian Date: Thu, 30 Jan 2025 02:37:17 -0700 Subject: [PATCH] Set Item Tracker Total Checks window to only scale text if Item Tracker window type is Floating. (#4963) Increase default width to account for window type title text. --- .../Enhancements/randomizer/randomizer_item_tracker.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/soh/soh/Enhancements/randomizer/randomizer_item_tracker.cpp b/soh/soh/Enhancements/randomizer/randomizer_item_tracker.cpp index eb0b1aafd..b2343b000 100644 --- a/soh/soh/Enhancements/randomizer/randomizer_item_tracker.cpp +++ b/soh/soh/Enhancements/randomizer/randomizer_item_tracker.cpp @@ -921,7 +921,11 @@ void DrawTotalChecks() { uint16_t totalChecksGotten = CheckTracker::GetTotalChecksGotten(); ImGui::BeginGroup(); - ImGui::SetWindowFontScale(2.5); + if (CVarGetInteger(CVAR_TRACKER_ITEM("WindowType"), TRACKER_WINDOW_FLOATING) == TRACKER_WINDOW_FLOATING) { + ImGui::SetWindowFontScale(2.5); + } else { + ImGui::SetWindowFontScale(1); + } ImGui::Text("Checks: %d/%d", totalChecksGotten, totalChecks); ImGui::EndGroup(); } @@ -1340,7 +1344,7 @@ void ItemTrackerWindow::DrawElement() { if (CVarGetInteger("gTrackers.ItemTracker.TotalChecks.DisplayType", SECTION_DISPLAY_MINIMAL_HIDDEN) == SECTION_DISPLAY_MINIMAL_SEPARATE) { - ImGui::SetNextWindowSize(ImVec2(400, 300), ImGuiCond_FirstUseEver); + ImGui::SetNextWindowSize(ImVec2(450, 300), ImGuiCond_FirstUseEver); BeginFloatingWindows("Total Checks"); DrawTotalChecks(); EndFloatingWindows();