Update statistics window
This commit is contained in:
parent
8a2f071582
commit
6013b84568
@ -21,6 +21,7 @@ namespace Pal.Client.Windows
|
||||
{
|
||||
Size = new Vector2(500, 500);
|
||||
SizeCondition = ImGuiCond.FirstUseEver;
|
||||
Flags = ImGuiWindowFlags.AlwaysAutoResize;
|
||||
|
||||
foreach (ETerritoryType territory in typeof(ETerritoryType).GetEnumValues())
|
||||
{
|
||||
@ -29,15 +30,17 @@ namespace Pal.Client.Windows
|
||||
}
|
||||
|
||||
public override void Draw()
|
||||
{
|
||||
if (ImGui.BeginTabBar("Tabs"))
|
||||
{
|
||||
DrawDungeonStats("Palace of the Dead", ETerritoryType.Palace_1_10, ETerritoryType.Palace_191_200);
|
||||
DrawDungeonStats("Heaven on High", ETerritoryType.HeavenOnHigh_1_10, ETerritoryType.HeavenOnHigh_91_100);
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawDungeonStats(string name, ETerritoryType minTerritory, ETerritoryType maxTerritory)
|
||||
{
|
||||
|
||||
if (ImGui.CollapsingHeader(name, ImGuiTreeNodeFlags.DefaultOpen))
|
||||
if (ImGui.BeginTabItem(name))
|
||||
{
|
||||
if (ImGui.BeginTable($"TrapHoardStatistics{name}", 4, ImGuiTableFlags.Borders | ImGuiTableFlags.Resizable))
|
||||
{
|
||||
@ -64,6 +67,7 @@ namespace Pal.Client.Windows
|
||||
}
|
||||
ImGui.EndTable();
|
||||
}
|
||||
ImGui.EndTabItem();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user