From b5490e95f64c4f56101f500594386b497c2f2d05 Mon Sep 17 00:00:00 2001 From: Anthony Stewart Date: Thu, 3 Jul 2025 00:22:27 -0500 Subject: [PATCH] Switched to mono-format. --- .../randomizer/randomizer_logic_tracker.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/soh/soh/Enhancements/randomizer/randomizer_logic_tracker.cpp b/soh/soh/Enhancements/randomizer/randomizer_logic_tracker.cpp index d49e27379..3ef254f45 100644 --- a/soh/soh/Enhancements/randomizer/randomizer_logic_tracker.cpp +++ b/soh/soh/Enhancements/randomizer/randomizer_logic_tracker.cpp @@ -2,6 +2,7 @@ #include "location_access.h" #include "logic_expression.h" +#include "../../OTRGlobals.h" #include @@ -177,8 +178,9 @@ static std::string ToString(const std::optional& static void DrawExpressionRow(const LogicTrackerCheck::Region& region, LogicTrackerCheck::Region::ExpressionRow& row, int level) { ImGui::TableNextRow(); + ImGui::PushFont(OTRGlobals::Instance->fontMono); if (level > 0) { - ImGui::Indent(10.0f); + ImGui::Indent(20.0f); } ImGui::TableNextColumn(); @@ -188,10 +190,11 @@ static void DrawExpressionRow(const LogicTrackerCheck::Region& region, LogicTrac row.Expanded = !row.Expanded; } } else { - ImGui::Text("%d", level); + ImGui::BeginDisabled(); + ImGui::Button(std::to_string(level).c_str()); + ImGui::EndDisabled(); } ImGui::PopID(); - ImGui::TableNextColumn(); ImGui::TextWrapped("%s", row.Expression->ToString().c_str()); @@ -220,8 +223,9 @@ static void DrawExpressionRow(const LogicTrackerCheck::Region& region, LogicTrac } if (level > 0) { - ImGui::Unindent(10.0f); + ImGui::Unindent(20.0f); } + ImGui::PopFont(); } static void DrawCheckRegion(LogicTrackerCheck::Region& region) { @@ -238,7 +242,7 @@ static void DrawCheckRegion(LogicTrackerCheck::Region& region) { if (ImGui::BeginTable(region.RegionName.c_str(), columnCount, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit)) { - ImGui::TableSetupColumn("", ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupColumn("Level", ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_WidthFixed); ImGui::TableSetupColumn("Expression", ImGuiTableColumnFlags_WidthStretch); if (region.CombineAll) { ImGui::TableSetupColumn("All", ImGuiTableColumnFlags_WidthFixed);