Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 6a28a93

Browse files
committed
Update for obsolete method
1 parent 32e718f commit 6a28a93

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/CacheObject/CacheMember.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public virtual void SetInspectorOwner(ReflectionInspector inspector, MemberInfo
2929
this.Owner = inspector;
3030
this.NameLabelText = this switch
3131
{
32-
CacheMethod => SignatureHighlighter.HighlightMethod(member as MethodInfo),
33-
CacheConstructor => SignatureHighlighter.HighlightConstructor(member as ConstructorInfo),
32+
CacheMethod => SignatureHighlighter.ParseMethod(member as MethodInfo),
33+
CacheConstructor => SignatureHighlighter.ParseConstructor(member as ConstructorInfo),
3434
_ => SignatureHighlighter.Parse(member.DeclaringType, false, member),
3535
};
3636

src/Hooks/HookCreator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void ShowMethodsForType(Type type)
8282
if (UERuntimeHelper.IsBlacklisted(method))
8383
continue;
8484
currentAddEligableMethods.Add(method);
85-
currentEligableNamesForFiltering.Add(SignatureHighlighter.RemoveHighlighting(SignatureHighlighter.HighlightMethod(method)));
85+
currentEligableNamesForFiltering.Add(SignatureHighlighter.RemoveHighlighting(SignatureHighlighter.ParseMethod(method)));
8686
filteredEligableMethods.Add(method);
8787
}
8888

@@ -201,7 +201,7 @@ public void SetCell(AddHookCell cell, int index)
201201
cell.CurrentDisplayedIndex = index;
202202
MethodInfo method = filteredEligableMethods[index];
203203

204-
cell.MethodNameLabel.text = SignatureHighlighter.HighlightMethod(method);
204+
cell.MethodNameLabel.text = SignatureHighlighter.ParseMethod(method);
205205
}
206206

207207
// ~~~~~~~~ Hook source editor ~~~~~~~~

src/Hooks/HookList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void SetCell(HookCell cell, int index)
6767
cell.CurrentDisplayedIndex = index;
6868
HookInstance hook = (HookInstance)currentHooks[index];
6969

70-
cell.MethodNameLabel.text = SignatureHighlighter.HighlightMethod(hook.TargetMethod);
70+
cell.MethodNameLabel.text = SignatureHighlighter.ParseMethod(hook.TargetMethod);
7171

7272
cell.ToggleActiveButton.ButtonText.text = hook.Enabled ? "On" : "Off";
7373
RuntimeHelper.SetColorBlockAuto(cell.ToggleActiveButton.Component,

src/UI/Widgets/EvaluateWidget/GenericConstructorWidget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void Show(Action<Type[]> onSubmit, Action onCancel, Type genericTypeDefin
3434

3535
public void Show(Action<Type[]> onSubmit, Action onCancel, MethodInfo genericMethodDefinition)
3636
{
37-
Title.text = $"Setting generic arguments for {SignatureHighlighter.HighlightMethod(genericMethodDefinition)}...";
37+
Title.text = $"Setting generic arguments for {SignatureHighlighter.ParseMethod(genericMethodDefinition)}...";
3838

3939
OnShow(onSubmit, onCancel, genericMethodDefinition.GetGenericArguments());
4040
}

0 commit comments

Comments
 (0)