Skip to content

Commit 3b6d432

Browse files
committed
Changed hex display.
1 parent b09b294 commit 3b6d432

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ReClass.NET/Nodes/NIntNode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public override void GetUserInterfaceInfo(out string name, out Image icon)
2020

2121
public override Size Draw(DrawContext context, int x, int y)
2222
{
23-
var value = ReadValueFromMemory(context.Memory);
24-
return DrawNumeric(context, x, y, context.IconProvider.Signed, "NInt", value.ToInt64().ToString(), "0x" + value.ToString(Constants.AddressHexFormat));
23+
var value = ReadValueFromMemory(context.Memory).ToInt64();
24+
return DrawNumeric(context, x, y, context.IconProvider.Signed, "NInt", value.ToString(), $"0x{value:X}");
2525
}
2626

2727
public override void Update(HotSpot spot)

ReClass.NET/Nodes/NUIntNode.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ public override void GetUserInterfaceInfo(out string name, out Image icon)
2020

2121
public override Size Draw(DrawContext context, int x, int y)
2222
{
23-
var value = ReadValueFromMemory(context.Memory);
24-
var uvalue = value.ToUInt64();
25-
return DrawNumeric(context, x, y, context.IconProvider.Unsigned, "NUInt", uvalue.ToString(), "0x" + uvalue.ToString(Constants.AddressHexFormat));
23+
var value = ReadValueFromMemory(context.Memory).ToUInt64();
24+
return DrawNumeric(context, x, y, context.IconProvider.Unsigned, "NUInt", value.ToString(), $"0x{value:X}");
2625
}
2726

2827
public override void Update(HotSpot spot)

0 commit comments

Comments
 (0)