Tweak statistics window

This commit is contained in:
Liza 2022-10-27 16:48:09 +02:00
parent 6c7389c831
commit fd66fcf55e

View File

@ -32,16 +32,20 @@ namespace Pal.Client.Windows
{
if (ImGui.CollapsingHeader("Discovered Traps & Coffers per Instance", ImGuiTreeNodeFlags.DefaultOpen))
{
if (ImGui.BeginTable("TrapHoardStatistics", 3, ImGuiTableFlags.Borders))
if (ImGui.BeginTable("TrapHoardStatistics", 4, ImGuiTableFlags.Borders | ImGuiTableFlags.Resizable))
{
ImGui.TableSetupColumn("Instance", ImGuiTableColumnFlags.WidthFixed);
ImGui.TableSetupColumn("Traps", ImGuiTableColumnFlags.WidthFixed, 100);
ImGui.TableSetupColumn("Hoard", ImGuiTableColumnFlags.WidthFixed, 100);
ImGui.TableSetupColumn("Id");
ImGui.TableSetupColumn("Instance");
ImGui.TableSetupColumn("Traps");
ImGui.TableSetupColumn("Hoard");
ImGui.TableHeadersRow();
foreach (var (territoryType, stats) in _territoryStatistics)
{
ImGui.TableNextRow();
if (ImGui.TableNextColumn())
ImGui.Text($"{(uint)territoryType}");
if (ImGui.TableNextColumn())
ImGui.Text(stats.TerritoryName);