271 lines
12 KiB
C#
271 lines
12 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using DG.Tweening;
|
|
using DG.Tweening.Core;
|
|
using DG.Tweening.Plugins.Options;
|
|
using MarsSDK;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
// Token: 0x02000244 RID: 580
|
|
[Token(Token = "0x2000244")]
|
|
public abstract class UISubSettingsBase : MonoBehaviour, IUIController
|
|
{
|
|
// Token: 0x06001613 RID: 5651 RVA: 0x00032DFC File Offset: 0x00030FFC
|
|
[Token(Token = "0x6001613")]
|
|
[Address(RVA = "0xDEA430", Offset = "0xDE8C30", VA = "0x180DEA430", Slot = "11")]
|
|
public virtual void Init(CanvasGroup mainCanvasGroup, Action cancelHandler, Text title)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06001613)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UISubSettingsBase::Init(UnityEngine.CanvasGroup,System.Action,UnityEngine.UI.Text)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stfld:CanvasGroup(UISubSettingsBase::mainCanvasGroup, ldloc:UISubSettingsBase(this), ldloc:CanvasGroup(mainCanvasGroup)); stfld:Action(UISubSettingsBase::cancelHandler, ldloc:UISubSettingsBase(this), ldloc:Action(cancelHandler)); stfld:Text(UISubSettingsBase::title, ldloc:UISubSettingsBase(this), ldloc:Text(title)); };
|
|
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: 0x06001614 RID: 5652
|
|
[Token(Token = "0x6001614")]
|
|
[Address(Slot = "12")]
|
|
public abstract void Open();
|
|
|
|
// Token: 0x06001615 RID: 5653 RVA: 0x00032E20 File Offset: 0x00031020
|
|
[Token(Token = "0x6001615")]
|
|
[Address(RVA = "0xDEA230", Offset = "0xDE8A30", VA = "0x180DEA230")]
|
|
public void Dispose()
|
|
{
|
|
CanvasGroup canvasGroup = this.subCanvasGroup;
|
|
int num = 0;
|
|
canvasGroup.alpha = (float)num;
|
|
CanvasGroup canvasGroup2 = this.subCanvasGroup;
|
|
int num2 = 0;
|
|
canvasGroup2.blocksRaycasts = num2 != 0;
|
|
}
|
|
|
|
// Token: 0x06001616 RID: 5654 RVA: 0x00032E54 File Offset: 0x00031054
|
|
[Token(Token = "0x6001616")]
|
|
[Address(RVA = "0xDE9FD0", Offset = "0xDE87D0", VA = "0x180DE9FD0")]
|
|
protected void Appear()
|
|
{
|
|
CanvasGroup canvasGroup = this.subCanvasGroup;
|
|
int num = 0;
|
|
int num2 = canvasGroup.DOKill(num != 0);
|
|
TweenerCore<float, float, FloatOptions> tweenerCore = DOTweenModuleUI.DOFade(this.subCanvasGroup, 1f, 0.3f).SetEase((Ease)((uint)15));
|
|
TweenCallback tweenCallback = delegate
|
|
{
|
|
Game.BindUIController(this);
|
|
Game.EnablePauseMenuAction();
|
|
this.subCanvasGroup.blocksRaycasts = true;
|
|
UINavigator uinavigator = this.navigator;
|
|
Action<UIHandlerBase> action = new Action(this.UpdateCursorPosition);
|
|
uinavigator.onMovedEvent = action;
|
|
throw new NullReferenceException();
|
|
};
|
|
TweenerCore<float, float, FloatOptions> tweenerCore2 = tweenerCore.OnComplete(tweenCallback).Play<TweenerCore<float, float, FloatOptions>>();
|
|
}
|
|
|
|
// Token: 0x06001617 RID: 5655 RVA: 0x00032EB0 File Offset: 0x000310B0
|
|
[Token(Token = "0x6001617")]
|
|
[Address(RVA = "0xDEA340", Offset = "0xDE8B40", VA = "0x180DEA340")]
|
|
protected void Hide()
|
|
{
|
|
Game.UnbindUIController();
|
|
Game.DisablePauseMenuAction();
|
|
this.navigator.UnbindHandlerMovedEvent();
|
|
this.navigator.Clear();
|
|
CanvasGroup canvasGroup = this.subCanvasGroup;
|
|
int num = 0;
|
|
int num2 = canvasGroup.DOKill(num != 0);
|
|
CanvasGroup canvasGroup2 = this.subCanvasGroup;
|
|
int num3 = 0;
|
|
canvasGroup2.blocksRaycasts = num3 != 0;
|
|
CanvasGroup canvasGroup3 = this.subCanvasGroup;
|
|
int num4 = 0;
|
|
TweenerCore<float, float, FloatOptions> tweenerCore = DOTweenModuleUI.DOFade(canvasGroup3, (float)num4, 0.5f).SetEase((Ease)((uint)15)).Play<TweenerCore<float, float, FloatOptions>>();
|
|
}
|
|
|
|
// Token: 0x06001618 RID: 5656 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001618")]
|
|
[Address(RVA = "0x29E8B0", Offset = "0x29D0B0", VA = "0x18029E8B0", Slot = "13")]
|
|
public virtual void Move(Direction2D direction)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001619 RID: 5657 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001619")]
|
|
[Address(RVA = "0x29E8B0", Offset = "0x29D0B0", VA = "0x18029E8B0", Slot = "14")]
|
|
public virtual void SwitchLeftward()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600161A RID: 5658 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600161A")]
|
|
[Address(RVA = "0x29E8B0", Offset = "0x29D0B0", VA = "0x18029E8B0", Slot = "15")]
|
|
public virtual void SwitchRightward()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600161B RID: 5659 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600161B")]
|
|
[Address(RVA = "0x29E8B0", Offset = "0x29D0B0", VA = "0x18029E8B0", Slot = "16")]
|
|
public virtual void Submit()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600161C RID: 5660 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600161C")]
|
|
[Address(RVA = "0x29E8B0", Offset = "0x29D0B0", VA = "0x18029E8B0", Slot = "17")]
|
|
public virtual void Hold(bool onHolding)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600161D RID: 5661 RVA: 0x00032F38 File Offset: 0x00031138
|
|
[Token(Token = "0x600161D")]
|
|
[Address(RVA = "0xDEA0D0", Offset = "0xDE88D0", VA = "0x180DEA0D0", Slot = "18")]
|
|
public virtual void Cancel()
|
|
{
|
|
Game.UnbindUIController();
|
|
Game.DisablePauseMenuAction();
|
|
this.navigator.UnbindHandlerMovedEvent();
|
|
this.navigator.Clear();
|
|
CanvasGroup canvasGroup = this.subCanvasGroup;
|
|
int num = 0;
|
|
int num2 = canvasGroup.DOKill(num != 0);
|
|
CanvasGroup canvasGroup2 = this.subCanvasGroup;
|
|
int num3 = 0;
|
|
canvasGroup2.blocksRaycasts = num3 != 0;
|
|
CanvasGroup canvasGroup3 = this.subCanvasGroup;
|
|
int num4 = 0;
|
|
TweenerCore<float, float, FloatOptions> tweenerCore = DOTweenModuleUI.DOFade(canvasGroup3, (float)num4, 0.5f).SetEase((Ease)((uint)15)).Play<TweenerCore<float, float, FloatOptions>>();
|
|
Game.PlayCanvasSE(UICanvasSFX.Close);
|
|
Action action = this.cancelHandler;
|
|
if (action != 0)
|
|
{
|
|
action();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600161E RID: 5662 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600161E")]
|
|
[Address(RVA = "0x29E8B0", Offset = "0x29D0B0", VA = "0x18029E8B0", Slot = "10")]
|
|
public void SpecialAction()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600161F RID: 5663
|
|
[Token(Token = "0x600161F")]
|
|
[Address(Slot = "19")]
|
|
public abstract bool IsDirty();
|
|
|
|
// Token: 0x06001620 RID: 5664 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001620")]
|
|
[Address(RVA = "0x29E8B0", Offset = "0x29D0B0", VA = "0x18029E8B0", Slot = "20")]
|
|
public virtual void Localize(LocalizationData data)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001621 RID: 5665 RVA: 0x00032FD8 File Offset: 0x000311D8
|
|
[Token(Token = "0x6001621")]
|
|
[Address(RVA = "0xDEA490", Offset = "0xDE8C90", VA = "0x180DEA490")]
|
|
protected void PerformSubmissionFadingEffect(Image submissionEffect)
|
|
{
|
|
TweenerCore<Color, Color, ColorOptions> tweenerCore = DOTweenModuleUI.DOFade(submissionEffect, 1f, 0.15f);
|
|
int num = 0;
|
|
int num2 = 0;
|
|
TweenerCore<Color, Color, ColorOptions> tweenerCore2 = TweenSettingsExtensions.From(tweenerCore, (float)num2, true, num != 0).SetLoops(2, LoopType.Yoyo).Play<TweenerCore<Color, Color, ColorOptions>>();
|
|
}
|
|
|
|
// Token: 0x06001622 RID: 5666 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001622")]
|
|
[Address(RVA = "0xDEA6A0", Offset = "0xDE8EA0", VA = "0x180DEA6A0")]
|
|
private void UpdateCursorPosition(UIHandlerBase handler)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001623 RID: 5667 RVA: 0x00033014 File Offset: 0x00031214
|
|
[Token(Token = "0x6001623")]
|
|
[Address(RVA = "0xDE9ED0", Offset = "0xDE86D0", VA = "0x180DE9ED0")]
|
|
protected void AppearBaseCanvasGroup()
|
|
{
|
|
CanvasGroup canvasGroup = this.mainCanvasGroup;
|
|
int num = 0;
|
|
int num2 = canvasGroup.DOKill(num != 0);
|
|
TweenerCore<float, float, FloatOptions> tweenerCore = DOTweenModuleUI.DOFade(this.mainCanvasGroup, 1f, 0.3f).SetEase((Ease)((uint)15));
|
|
TweenCallback tweenCallback = delegate
|
|
{
|
|
Game.BindUIController(this);
|
|
Game.EnablePauseMenuAction();
|
|
this.mainCanvasGroup.blocksRaycasts = true;
|
|
};
|
|
TweenerCore<float, float, FloatOptions> tweenerCore2 = tweenerCore.OnComplete(tweenCallback).Play<TweenerCore<float, float, FloatOptions>>();
|
|
}
|
|
|
|
// Token: 0x06001624 RID: 5668 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001624")]
|
|
[Address(RVA = "0xDEA270", Offset = "0xDE8A70", VA = "0x180DEA270")]
|
|
protected void HideBaseCanvasGroup()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001625 RID: 5669 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001625")]
|
|
[Address(RVA = "0x29E8B0", Offset = "0x29D0B0", VA = "0x18029E8B0", Slot = "21")]
|
|
public virtual void UpdateDirtyCheckValue()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001626 RID: 5670 RVA: 0x00033070 File Offset: 0x00031270
|
|
[Token(Token = "0x6001626")]
|
|
[Address(RVA = "0x33E460", Offset = "0x33CC60", VA = "0x18033E460")]
|
|
protected UISubSettingsBase()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04002127 RID: 8487
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4002127")]
|
|
[SerializeField]
|
|
protected CanvasGroup subCanvasGroup;
|
|
|
|
// Token: 0x04002128 RID: 8488
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4002128")]
|
|
[SerializeField]
|
|
protected UINavigator navigator;
|
|
|
|
// Token: 0x04002129 RID: 8489
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4002129")]
|
|
protected CanvasGroup mainCanvasGroup;
|
|
|
|
// Token: 0x0400212A RID: 8490
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400212A")]
|
|
protected Text title;
|
|
|
|
// Token: 0x0400212B RID: 8491
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400212B")]
|
|
protected Action cancelHandler;
|
|
}
|