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.
This commit is contained in:
Malkierian 2025-01-30 02:37:17 -07:00 committed by GitHub
parent 7df9641297
commit 1744f1fc18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();