Update showObject, use in gauge pane

This commit is contained in:
Raymond 2021-12-05 12:23:52 -05:00
parent 735292e86c
commit 287c7c8a78
2 changed files with 6 additions and 10 deletions

View file

@ -174,7 +174,11 @@ namespace Dalamud.Utility
foreach (var propertyInfo in type.GetProperties())
{
ImGui.TextColored(ImGuiColors.DalamudOrange, $" {propertyInfo.Name}: {propertyInfo.GetValue(obj)}");
var value = propertyInfo.GetValue(obj);
if (value.GetType() == typeof(IntPtr))
ImGui.TextColored(ImGuiColors.DalamudOrange, $" {propertyInfo.Name}: 0x{value:X}");
else
ImGui.TextColored(ImGuiColors.DalamudOrange, $" {propertyInfo.Name}: {value}");
}
ImGui.Unindent();