mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-15 13:57:31 +08:00
Update for obsolete method
This commit is contained in:
parent
32e718faeb
commit
6a28a93e3a
@ -29,8 +29,8 @@ namespace UnityExplorer.CacheObject
|
||||
this.Owner = inspector;
|
||||
this.NameLabelText = this switch
|
||||
{
|
||||
CacheMethod => SignatureHighlighter.HighlightMethod(member as MethodInfo),
|
||||
CacheConstructor => SignatureHighlighter.HighlightConstructor(member as ConstructorInfo),
|
||||
CacheMethod => SignatureHighlighter.ParseMethod(member as MethodInfo),
|
||||
CacheConstructor => SignatureHighlighter.ParseConstructor(member as ConstructorInfo),
|
||||
_ => SignatureHighlighter.Parse(member.DeclaringType, false, member),
|
||||
};
|
||||
|
||||
|
@ -82,7 +82,7 @@ namespace UnityExplorer.Hooks
|
||||
if (UERuntimeHelper.IsBlacklisted(method))
|
||||
continue;
|
||||
currentAddEligableMethods.Add(method);
|
||||
currentEligableNamesForFiltering.Add(SignatureHighlighter.RemoveHighlighting(SignatureHighlighter.HighlightMethod(method)));
|
||||
currentEligableNamesForFiltering.Add(SignatureHighlighter.RemoveHighlighting(SignatureHighlighter.ParseMethod(method)));
|
||||
filteredEligableMethods.Add(method);
|
||||
}
|
||||
|
||||
@ -201,7 +201,7 @@ namespace UnityExplorer.Hooks
|
||||
cell.CurrentDisplayedIndex = index;
|
||||
MethodInfo method = filteredEligableMethods[index];
|
||||
|
||||
cell.MethodNameLabel.text = SignatureHighlighter.HighlightMethod(method);
|
||||
cell.MethodNameLabel.text = SignatureHighlighter.ParseMethod(method);
|
||||
}
|
||||
|
||||
// ~~~~~~~~ Hook source editor ~~~~~~~~
|
||||
|
@ -67,7 +67,7 @@ namespace UnityExplorer.Hooks
|
||||
cell.CurrentDisplayedIndex = index;
|
||||
HookInstance hook = (HookInstance)currentHooks[index];
|
||||
|
||||
cell.MethodNameLabel.text = SignatureHighlighter.HighlightMethod(hook.TargetMethod);
|
||||
cell.MethodNameLabel.text = SignatureHighlighter.ParseMethod(hook.TargetMethod);
|
||||
|
||||
cell.ToggleActiveButton.ButtonText.text = hook.Enabled ? "On" : "Off";
|
||||
RuntimeHelper.SetColorBlockAuto(cell.ToggleActiveButton.Component,
|
||||
|
@ -34,7 +34,7 @@ namespace UnityExplorer.UI.Widgets
|
||||
|
||||
public void Show(Action<Type[]> onSubmit, Action onCancel, MethodInfo genericMethodDefinition)
|
||||
{
|
||||
Title.text = $"Setting generic arguments for {SignatureHighlighter.HighlightMethod(genericMethodDefinition)}...";
|
||||
Title.text = $"Setting generic arguments for {SignatureHighlighter.ParseMethod(genericMethodDefinition)}...";
|
||||
|
||||
OnShow(onSubmit, onCancel, genericMethodDefinition.GetGenericArguments());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user