Skip to content

Commit 76fd4fa

Browse files
committed
Sync with latest ReClass.NET sources.
1 parent f46f11c commit 76fd4fa

File tree

6 files changed

+19
-30
lines changed

6 files changed

+19
-30
lines changed

Diff for: CodeGenerator.cs

+3-8
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
namespace UnrealEngineClassesPlugin
88
{
9-
public class CodeGenerator : ICustomCppCodeGenerator
9+
public class CodeGenerator : CustomCppCodeGenerator
1010
{
11-
public bool CanHandle(BaseNode node)
11+
public override bool CanHandle(BaseNode node)
1212
{
1313
switch (node)
1414
{
@@ -24,7 +24,7 @@ public bool CanHandle(BaseNode node)
2424
return false;
2525
}
2626

27-
public string GetTypeDefinition(BaseNode node, GetTypeDefinitionFunc defaultGetTypeDefinitionFunc, ResolveWrappedTypeFunc defaultResolveWrappedTypeFunc, ILogger logger)
27+
public override string GetTypeDefinition(BaseNode node, GetTypeDefinitionFunc defaultGetTypeDefinitionFunc, ResolveWrappedTypeFunc defaultResolveWrappedTypeFunc, ILogger logger)
2828
{
2929
switch (node)
3030
{
@@ -44,10 +44,5 @@ public string GetTypeDefinition(BaseNode node, GetTypeDefinitionFunc defaultGetT
4444

4545
throw new InvalidOperationException("Can not handle node: " + node.GetType());
4646
}
47-
48-
public BaseNode TransformNode(BaseNode node)
49-
{
50-
return node;
51-
}
5247
}
5348
}

Diff for: Nodes/FDateTimeNode.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ public override Size Draw(ViewInfo view, int x, int y)
2525

2626
var ticks = view.Memory.ReadInt64(Offset);
2727

28-
DrawInvalidMemoryIndicator(view, y);
29-
3028
var origX = x;
3129

3230
AddSelection(view, x, y, view.Font.Height);
@@ -43,8 +41,9 @@ public override Size Draw(ViewInfo view, int x, int y)
4341

4442
x = AddComment(view, x, y);
4543

46-
AddTypeDrop(view, y);
47-
AddDelete(view, y);
44+
DrawInvalidMemoryIndicatorIcon(view, y);
45+
AddContextDropDownIcon(view, y);
46+
AddDeleteIcon(view, y);
4847

4948
return new Size(x - origX, view.Font.Height);
5049
}

Diff for: Nodes/FGuidNode.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ public override Size Draw(ViewInfo view, int x, int y)
2626
var c = view.Memory.ReadUInt32(Offset + 8);
2727
var d = view.Memory.ReadUInt32(Offset + 12);
2828

29-
DrawInvalidMemoryIndicator(view, y);
30-
3129
var origX = x;
3230

3331
AddSelection(view, x, y, view.Font.Height);
@@ -44,8 +42,9 @@ public override Size Draw(ViewInfo view, int x, int y)
4442

4543
x = AddComment(view, x, y);
4644

47-
AddTypeDrop(view, y);
48-
AddDelete(view, y);
45+
DrawInvalidMemoryIndicatorIcon(view, y);
46+
AddContextDropDownIcon(view, y);
47+
AddDeleteIcon(view, y);
4948

5049
return new Size(x - origX, view.Font.Height);
5150
}

Diff for: Nodes/FQWordNode.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ public override Size Draw(ViewInfo view, int x, int y)
2121
return DrawHidden(view, x, y);
2222
}
2323

24-
DrawInvalidMemoryIndicator(view, y);
25-
2624
var origX = x;
2725

2826
AddSelection(view, x, y, view.Font.Height);
@@ -43,8 +41,9 @@ public override Size Draw(ViewInfo view, int x, int y)
4341

4442
x = AddComment(view, x, y);
4543

46-
AddTypeDrop(view, y);
47-
AddDelete(view, y);
44+
DrawInvalidMemoryIndicatorIcon(view, y);
45+
AddContextDropDownIcon(view, y);
46+
AddDeleteIcon(view, y);
4847

4948
return new Size(x - origX, view.Font.Height);
5049
}

Diff for: Nodes/FStringNode.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ public override Size Draw(ViewInfo view, int x, int y)
2727
var length = view.Memory.ReadInt32(Offset + IntPtr.Size);
2828
var text = view.Memory.Process.ReadRemoteString(Encoding.Unicode, ptr, length);
2929

30-
DrawInvalidMemoryIndicator(view, y);
31-
3230
var origX = x;
3331

3432
AddSelection(view, x, y, view.Font.Height);
@@ -46,8 +44,9 @@ public override Size Draw(ViewInfo view, int x, int y)
4644

4745
x = AddComment(view, x, y);
4846

49-
AddTypeDrop(view, y);
50-
AddDelete(view, y);
47+
DrawInvalidMemoryIndicatorIcon(view, y);
48+
AddContextDropDownIcon(view, y);
49+
AddDeleteIcon(view, y);
5150

5251
return new Size(x - origX, view.Font.Height);
5352
}

Diff for: Nodes/TSharedPtrNode.cs

+4-6
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,14 @@ public override Size Draw(ViewInfo view, int x, int y)
4040
return DrawHidden(view, x, y);
4141
}
4242

43-
DrawInvalidMemoryIndicator(view, y);
44-
4543
var origX = x;
4644
var origY = y;
4745

4846
AddSelection(view, x, y, view.Font.Height);
4947

5048
if (InnerNode != null)
5149
{
52-
x = AddOpenClose(view, x, y);
50+
x = AddOpenCloseIcon(view, x, y);
5351
}
5452
else
5553
{
@@ -78,9 +76,9 @@ public override Size Draw(ViewInfo view, int x, int y)
7876

7977
x = AddComment(view, x, y);
8078

81-
DrawInvalidMemoryIndicator(view, y);
82-
AddTypeDrop(view, y);
83-
AddDelete(view, y);
79+
DrawInvalidMemoryIndicatorIcon(view, y);
80+
AddContextDropDownIcon(view, y);
81+
AddDeleteIcon(view, y);
8482

8583
y += view.Font.Height;
8684

0 commit comments

Comments
 (0)