mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-30 15:00:13 -05:00
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:
parent
7df9641297
commit
1744f1fc18
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user