146 lines
8.6 KiB
C#
146 lines
8.6 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using DG.Tweening;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
using UnityEngine.UI;
|
|
|
|
// Token: 0x02000249 RID: 585
|
|
[Token(Token = "0x2000249")]
|
|
public class UIValueBindingArrow : MonoBehaviour, IPointerEnterHandler, IEventSystemHandler, IPointerExitHandler, IPointerClickHandler
|
|
{
|
|
// Token: 0x06001658 RID: 5720 RVA: 0x00033DD8 File Offset: 0x00031FD8
|
|
[Token(Token = "0x6001658")]
|
|
[Address(RVA = "0x95E310", Offset = "0x95CB10", VA = "0x18095E310")]
|
|
public void Init(Action clickedHandler, Action pointerEnterHandler, Action pointerExitHandler)
|
|
{
|
|
this.clickedHandler = clickedHandler;
|
|
this.pointerEnterHandler = pointerEnterHandler;
|
|
this.pointerExitHandler = pointerExitHandler;
|
|
this.isActive = false;
|
|
}
|
|
|
|
// Token: 0x06001659 RID: 5721 RVA: 0x00033E04 File Offset: 0x00032004
|
|
[Token(Token = "0x6001659")]
|
|
[Address(RVA = "0x95E530", Offset = "0x95CD30", VA = "0x18095E530", Slot = "4")]
|
|
public void OnPointerEnter(PointerEventData eventData)
|
|
{
|
|
this.PreformPointerTriggerEffect(1.25f);
|
|
Action action = this.pointerEnterHandler;
|
|
if (action != 0)
|
|
{
|
|
action();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600165A RID: 5722 RVA: 0x00033E30 File Offset: 0x00032030
|
|
[Token(Token = "0x600165A")]
|
|
[Address(RVA = "0x95E570", Offset = "0x95CD70", VA = "0x18095E570", Slot = "5")]
|
|
public void OnPointerExit(PointerEventData eventData)
|
|
{
|
|
this.PreformPointerTriggerEffect(1f);
|
|
Action action = this.pointerExitHandler;
|
|
if (action != 0)
|
|
{
|
|
action();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600165B RID: 5723 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600165B")]
|
|
[Address(RVA = "0x95E370", Offset = "0x95CB70", VA = "0x18095E370", Slot = "6")]
|
|
public void OnPointerClick(PointerEventData eventData)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600165C RID: 5724 RVA: 0x00033E5C File Offset: 0x0003205C
|
|
[Token(Token = "0x600165C")]
|
|
[Address(RVA = "0x7777B0", Offset = "0x775FB0", VA = "0x1807777B0")]
|
|
public void UpdateActivation(bool isActive)
|
|
{
|
|
this.isActive = isActive;
|
|
}
|
|
|
|
// Token: 0x0600165D RID: 5725 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600165D")]
|
|
[Address(RVA = "0x95E6F0", Offset = "0x95CEF0", VA = "0x18095E6F0")]
|
|
public void UpdateAlpha(float alpha)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600165E RID: 5726 RVA: 0x00033E70 File Offset: 0x00032070
|
|
[Token(Token = "0x600165E")]
|
|
[Address(RVA = "0x95E5B0", Offset = "0x95CDB0", VA = "0x18095E5B0")]
|
|
private void PreformPointerTriggerEffect(float scale)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600165E)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UIValueBindingArrow::PreformPointerTriggerEffect(System.Single)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; IL_14:; stloc:class [DOTween]DG.Tweening.Core.TweenerCore`3<valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [DOTween]DG.Tweening.Plugins.Options.VectorOptions>(var_2_2D, call:class [DOTween]DG.Tweening.Core.TweenerCore`3<valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [DOTween]DG.Tweening.Plugins.Options.VectorOptions>(TweenSettingsExtensions::SetEase, call:TweenerCore`3[exp:class [DOTween]DG.Tweening.Core.TweenerCore`3<valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [DOTween]DG.Tweening.Plugins.Options.VectorOptions>](ShortcutExtensions::DOScale, ldfld:RectTransform[exp:Transform](UIValueBindingArrow::root, ldloc:UIValueBindingArrow(this)), ldloc:float32(scale), ldc.r4:float32(0.2)), conv.u4:uint32[exp:Ease](ldc.i4:int32[exp:uint32](15)))); stloc:TweenCallback(var_3_3A, newobj:TweenCallback(TweenCallback::.ctor, ldloc:UIValueBindingArrow[exp:object](this), ldftn:native int(UIValueBindingArrow::<PreformPointerTriggerEffect>b__14_0))); stloc:class [DOTween]DG.Tweening.Core.TweenerCore`3<valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [DOTween]DG.Tweening.Plugins.Options.VectorOptions>(var_4_47, call:class [DOTween]DG.Tweening.Core.TweenerCore`3<valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [DOTween]DG.Tweening.Plugins.Options.VectorOptions>(TweenExtensions::Play, call:class [DOTween]DG.Tweening.Core.TweenerCore`3<valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [DOTween]DG.Tweening.Plugins.Options.VectorOptions>(TweenSettingsExtensions::OnComplete, ldloc:class [DOTween]DG.Tweening.Core.TweenerCore`3<valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [DOTween]DG.Tweening.Plugins.Options.VectorOptions>(var_2_2D), ldloc:TweenCallback(var_3_3A)))); stfld:Tween(UIValueBindingArrow::pointerEffect, ldloc:UIValueBindingArrow(this), ldloc:class [DOTween]DG.Tweening.Core.TweenerCore`3<valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [UnityEngine.CoreModule]UnityEngine.Vector3, valuetype [DOTween]DG.Tweening.Plugins.Options.VectorOptions>[exp:Tween](var_4_47)); };
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600165F RID: 5727 RVA: 0x00033ED0 File Offset: 0x000320D0
|
|
[Token(Token = "0x600165F")]
|
|
[Address(RVA = "0x33E460", Offset = "0x33CC60", VA = "0x18033E460")]
|
|
public UIValueBindingArrow()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400213F RID: 8511
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400213F")]
|
|
[SerializeField]
|
|
private RectTransform root;
|
|
|
|
// Token: 0x04002140 RID: 8512
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4002140")]
|
|
[SerializeField]
|
|
private Image image;
|
|
|
|
// Token: 0x04002141 RID: 8513
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4002141")]
|
|
private Action clickedHandler;
|
|
|
|
// Token: 0x04002142 RID: 8514
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4002142")]
|
|
private Action pointerEnterHandler;
|
|
|
|
// Token: 0x04002143 RID: 8515
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4002143")]
|
|
private Action pointerExitHandler;
|
|
|
|
// Token: 0x04002144 RID: 8516
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4002144")]
|
|
private Tween pointerEffect;
|
|
|
|
// Token: 0x04002145 RID: 8517
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4002145")]
|
|
private Tween clickEffect;
|
|
|
|
// Token: 0x04002146 RID: 8518
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4002146")]
|
|
private bool isActive;
|
|
}
|