mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 06:08:16 +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.Owner = inspector;
|
||||||
this.NameLabelText = this switch
|
this.NameLabelText = this switch
|
||||||
{
|
{
|
||||||
CacheMethod => SignatureHighlighter.HighlightMethod(member as MethodInfo),
|
CacheMethod => SignatureHighlighter.ParseMethod(member as MethodInfo),
|
||||||
CacheConstructor => SignatureHighlighter.HighlightConstructor(member as ConstructorInfo),
|
CacheConstructor => SignatureHighlighter.ParseConstructor(member as ConstructorInfo),
|
||||||
_ => SignatureHighlighter.Parse(member.DeclaringType, false, member),
|
_ => SignatureHighlighter.Parse(member.DeclaringType, false, member),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ namespace UnityExplorer.Hooks
|
|||||||
if (UERuntimeHelper.IsBlacklisted(method))
|
if (UERuntimeHelper.IsBlacklisted(method))
|
||||||
continue;
|
continue;
|
||||||
currentAddEligableMethods.Add(method);
|
currentAddEligableMethods.Add(method);
|
||||||
currentEligableNamesForFiltering.Add(SignatureHighlighter.RemoveHighlighting(SignatureHighlighter.HighlightMethod(method)));
|
currentEligableNamesForFiltering.Add(SignatureHighlighter.RemoveHighlighting(SignatureHighlighter.ParseMethod(method)));
|
||||||
filteredEligableMethods.Add(method);
|
filteredEligableMethods.Add(method);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,7 +201,7 @@ namespace UnityExplorer.Hooks
|
|||||||
cell.CurrentDisplayedIndex = index;
|
cell.CurrentDisplayedIndex = index;
|
||||||
MethodInfo method = filteredEligableMethods[index];
|
MethodInfo method = filteredEligableMethods[index];
|
||||||
|
|
||||||
cell.MethodNameLabel.text = SignatureHighlighter.HighlightMethod(method);
|
cell.MethodNameLabel.text = SignatureHighlighter.ParseMethod(method);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ~~~~~~~~ Hook source editor ~~~~~~~~
|
// ~~~~~~~~ Hook source editor ~~~~~~~~
|
||||||
|
@ -67,7 +67,7 @@ namespace UnityExplorer.Hooks
|
|||||||
cell.CurrentDisplayedIndex = index;
|
cell.CurrentDisplayedIndex = index;
|
||||||
HookInstance hook = (HookInstance)currentHooks[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";
|
cell.ToggleActiveButton.ButtonText.text = hook.Enabled ? "On" : "Off";
|
||||||
RuntimeHelper.SetColorBlockAuto(cell.ToggleActiveButton.Component,
|
RuntimeHelper.SetColorBlockAuto(cell.ToggleActiveButton.Component,
|
||||||
|
@ -34,7 +34,7 @@ namespace UnityExplorer.UI.Widgets
|
|||||||
|
|
||||||
public void Show(Action<Type[]> onSubmit, Action onCancel, MethodInfo genericMethodDefinition)
|
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());
|
OnShow(onSubmit, onCancel, genericMethodDefinition.GetGenericArguments());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user