mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: indents in Util.ShowObject()
This commit is contained in:
parent
c8cd769ec5
commit
ad9120fa39
1 changed files with 10 additions and 0 deletions
|
|
@ -140,18 +140,28 @@ namespace Dalamud.Utility
|
||||||
ImGuiHelpers.ScaledDummy(5);
|
ImGuiHelpers.ScaledDummy(5);
|
||||||
|
|
||||||
ImGui.TextColored(ImGuiColors.DalamudOrange, "-> Properties:");
|
ImGui.TextColored(ImGuiColors.DalamudOrange, "-> Properties:");
|
||||||
|
|
||||||
|
ImGui.Indent();
|
||||||
|
|
||||||
foreach (var propertyInfo in type.GetProperties())
|
foreach (var propertyInfo in type.GetProperties())
|
||||||
{
|
{
|
||||||
ImGui.TextColored(ImGuiColors.DalamudOrange, $" {propertyInfo.Name}: {propertyInfo.GetValue(obj)}");
|
ImGui.TextColored(ImGuiColors.DalamudOrange, $" {propertyInfo.Name}: {propertyInfo.GetValue(obj)}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui.Unindent();
|
||||||
|
|
||||||
ImGuiHelpers.ScaledDummy(5);
|
ImGuiHelpers.ScaledDummy(5);
|
||||||
|
|
||||||
ImGui.TextColored(ImGuiColors.HealerGreen, "-> Fields:");
|
ImGui.TextColored(ImGuiColors.HealerGreen, "-> Fields:");
|
||||||
|
|
||||||
|
ImGui.Indent();
|
||||||
|
|
||||||
foreach (var fieldInfo in type.GetFields())
|
foreach (var fieldInfo in type.GetFields())
|
||||||
{
|
{
|
||||||
ImGui.TextColored(ImGuiColors.HealerGreen, $" {fieldInfo.Name}: {fieldInfo.GetValue(obj)}");
|
ImGui.TextColored(ImGuiColors.HealerGreen, $" {fieldInfo.Name}: {fieldInfo.GetValue(obj)}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui.Unindent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue