Skip to content

Commit e6b1eae

Browse files
committed
Added new HotSpotType.
1 parent 4c511a1 commit e6b1eae

8 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎ReClass.NET/Nodes/ClassInstanceArrayNode.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public override void Intialize()
2525
/// <returns>The pixel size the node occupies.</returns>
2626
public override Size Draw(ViewInfo view, int x, int y)
2727
{
28-
return Draw(view, x, y, "Array", HotSpotType.ChangeType);
28+
return Draw(view, x, y, "Array", HotSpotType.ChangeClassType);
2929
}
3030

3131
protected override Size DrawChild(ViewInfo view, int x, int y)

‎ReClass.NET/Nodes/ClassInstanceNode.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public override Size Draw(ViewInfo view, int x, int y)
4747
x = AddText(view, x, y, view.Settings.TypeColor, HotSpot.NoneId, "Instance") + view.Font.Width;
4848
x = AddText(view, x, y, view.Settings.NameColor, HotSpot.NameId, Name) + view.Font.Width;
4949
x = AddText(view, x, y, view.Settings.ValueColor, HotSpot.NoneId, $"<{InnerNode.Name}>") + view.Font.Width;
50-
x = AddIcon(view, x, y, Icons.Change, 4, HotSpotType.ChangeType) + view.Font.Width;
50+
x = AddIcon(view, x, y, Icons.Change, 4, HotSpotType.ChangeClassType) + view.Font.Width;
5151

5252
x = AddComment(view, x, y);
5353

‎ReClass.NET/Nodes/ClassPtrArrayNode.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public override void Intialize()
2323

2424
public override Size Draw(ViewInfo view, int x, int y)
2525
{
26-
return Draw(view, x, y, "PtrArray", HotSpotType.ChangeType);
26+
return Draw(view, x, y, "PtrArray", HotSpotType.ChangeClassType);
2727
}
2828

2929
protected override Size DrawChild(ViewInfo view, int x, int y)

‎ReClass.NET/Nodes/ClassPtrNode.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public override Size Draw(ViewInfo view, int x, int y)
4747
x = AddText(view, x, y, view.Settings.TypeColor, HotSpot.NoneId, "Ptr") + view.Font.Width;
4848
x = AddText(view, x, y, view.Settings.NameColor, HotSpot.NameId, Name) + view.Font.Width;
4949
x = AddText(view, x, y, view.Settings.ValueColor, HotSpot.NoneId, $"<{InnerNode.Name}>") + view.Font.Width;
50-
x = AddIcon(view, x, y, Icons.Change, 4, HotSpotType.ChangeType) + view.Font.Width;
50+
x = AddIcon(view, x, y, Icons.Change, 4, HotSpotType.ChangeClassType) + view.Font.Width;
5151

5252
var ptr = view.Memory.ReadIntPtr(Offset);
5353

‎ReClass.NET/Nodes/FunctionNode.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public override Size Draw(ViewInfo view, int x, int y)
7474
y += view.Font.Height;
7575
x = AddText(view, tx, y, view.Settings.TextColor, HotSpot.NoneId, "Belongs to: ");
7676
x = AddText(view, x, y, view.Settings.ValueColor, HotSpot.NoneId, BelongsToClass == null ? "<None>" : $"<{BelongsToClass.Name}>") + view.Font.Width;
77-
x = AddIcon(view, x, y, Icons.Change, 1, HotSpotType.ChangeType);
77+
x = AddIcon(view, x, y, Icons.Change, 1, HotSpotType.ChangeClassType);
7878
size.Width = Math.Max(size.Width, x - origX);
7979
size.Height += view.Font.Height;
8080

‎ReClass.NET/Nodes/PointerNode.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public override Size Draw(ViewInfo view, int x, int y)
5050
{
5151

5252
}
53-
x = AddIcon(view, x, y, Icons.Change, 4, HotSpotType.ChangeType) + view.Font.Width;
53+
x = AddIcon(view, x, y, Icons.Change, 4, HotSpotType.ChangeWrappedType) + view.Font.Width;
5454

5555
var ptr = view.Memory.ReadIntPtr(Offset);
5656

‎ReClass.NET/UI/HotSpot.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ public enum HotSpotType
1313
Select,
1414
Drop,
1515
Click,
16-
ChangeType,
16+
ChangeClassType,
17+
ChangeWrappedType,
1718
Delete,
1819
RTTI,
1920
Address,

‎ReClass.NET/UI/MemoryViewControl.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ protected override void OnMouseClick(MouseEventArgs e)
384384

385385
break;
386386
}
387-
else if (hotSpot.Type == HotSpotType.ChangeType)
387+
else if (hotSpot.Type == HotSpotType.ChangeClassType)
388388
{
389389
if (hitObject is FunctionNode functionNode)
390390
{

0 commit comments

Comments
 (0)