From 735292e86c7041a5276c78d4283ccc0eb35cfb84 Mon Sep 17 00:00:00 2001 From: Raymond Date: Sun, 5 Dec 2021 12:20:22 -0500 Subject: [PATCH] Gauge data pane --- Dalamud/Interface/Internal/Windows/DataWindow.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dalamud/Interface/Internal/Windows/DataWindow.cs b/Dalamud/Interface/Internal/Windows/DataWindow.cs index d125f063b..f1da04c80 100644 --- a/Dalamud/Interface/Internal/Windows/DataWindow.cs +++ b/Dalamud/Interface/Internal/Windows/DataWindow.cs @@ -799,11 +799,14 @@ namespace Dalamud.Interface.Internal.Windows return; } - var props = gauge.GetType().GetProperties(); + var props = gauge.GetType().GetProperties().OrderBy(prop => prop.Name); foreach (var prop in props) { var result = prop.GetValue(gauge); - ImGui.Text($"{prop.Name}: {result}"); + if (result.GetType() == typeof(IntPtr)) + ImGui.Text($"{prop.Name}: {result:X}"); + else + ImGui.Text($"{prop.Name}: {result}"); } }