781 lines
30 KiB
C#
781 lines
30 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using MarsSDK;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
// Token: 0x02000258 RID: 600
|
|
[Token(Token = "0x2000258")]
|
|
public class UITeleport : GameCanvasBase
|
|
{
|
|
// Token: 0x06001700 RID: 5888 RVA: 0x00037828 File Offset: 0x00035A28
|
|
[Token(Token = "0x6001700")]
|
|
[Address(RVA = "0xDEE820", Offset = "0xDED020", VA = "0x180DEE820", Slot = "11")]
|
|
public override void Init()
|
|
{
|
|
this.InitTopHandlers();
|
|
this.InitFirstNavigation();
|
|
this.InitLastNavigation();
|
|
this.InitSelection();
|
|
}
|
|
|
|
// Token: 0x06001701 RID: 5889 RVA: 0x00037850 File Offset: 0x00035A50
|
|
[Token(Token = "0x6001701")]
|
|
[Address(RVA = "0xDEE220", Offset = "0xDECA20", VA = "0x180DEE220")]
|
|
private void InitTopHandlers()
|
|
{
|
|
do
|
|
{
|
|
UITeleportHandler uiteleportHandler = this.firstAreaHandlers[0];
|
|
int num = 0;
|
|
uiteleportHandler.Init(GameStage.Act02_01, num);
|
|
this.firstAreaHandlers[1].Init(GameStage.Act02_01, 3);
|
|
this.firstAreaHandlers[2].Init(GameStage.Act02_01, 1);
|
|
this.firstAreaHandlers[3].Init(GameStage.Act02_01, 4);
|
|
UITeleportHandler uiteleportHandler2 = this.firstAreaHandlers[4];
|
|
int num2 = 0;
|
|
uiteleportHandler2.Init(GameStage.Act03_01, num2);
|
|
this.firstAreaHandlers[5].Init(GameStage.Act03_01, 1);
|
|
UITeleportHandler uiteleportHandler3 = this.firstAreaHandlers[6];
|
|
int num3 = 0;
|
|
uiteleportHandler3.Init(GameStage.Act04_01, num3);
|
|
this.firstAreaHandlers[7].Init(GameStage.Act04_01, 1);
|
|
UITeleportHandler uiteleportHandler4 = this.firstAreaHandlers[8];
|
|
int num4 = 0;
|
|
uiteleportHandler4.Init(GameStage.Act05_02, num4);
|
|
this.firstAreaHandlers[9].Init(GameStage.Act05_02, 1);
|
|
this.firstAreaHandlers[10].Init(GameStage.Act05_02, 6);
|
|
this.firstAreaHandlers[11].Init(GameStage.Act05_02, 2);
|
|
UITeleportHandler uiteleportHandler5 = this.lastAreaHandlers[0];
|
|
int num5 = 0;
|
|
uiteleportHandler5.Init(GameStage.Act06_03, num5);
|
|
this.lastAreaHandlers[1].Init(GameStage.Act06_03, 1);
|
|
this.lastAreaHandlers[2].Init(GameStage.Act06_03, 2);
|
|
this.lastAreaHandlers[3].Init(GameStage.Act06_03, 3);
|
|
UITeleportHandler uiteleportHandler6 = this.lastAreaHandlers[4];
|
|
int num6 = 0;
|
|
uiteleportHandler6.Init(GameStage.Act07, num6);
|
|
this.lastAreaHandlers[5].Init(GameStage.Act07, 1);
|
|
this.lastAreaHandlers[6].Init(GameStage.Act07, 2);
|
|
UITeleportHandler[] array = this.firstAreaHandlers;
|
|
int num7 = 0;
|
|
if (num7 < array.Length)
|
|
{
|
|
array[num7].index = num7;
|
|
num7++;
|
|
UITeleportHandler[] array2 = this.firstAreaHandlers;
|
|
}
|
|
UITeleportHandler[] array3 = this.lastAreaHandlers;
|
|
if (num7 >= array3.Length)
|
|
{
|
|
break;
|
|
}
|
|
UITeleportHandler uiteleportHandler7 = array3[num7];
|
|
num7++;
|
|
uiteleportHandler7.index = 100;
|
|
}
|
|
while (this.lastAreaHandlers != 0);
|
|
}
|
|
|
|
// Token: 0x06001702 RID: 5890 RVA: 0x00037A64 File Offset: 0x00035C64
|
|
[Token(Token = "0x6001702")]
|
|
[Address(RVA = "0xDEC3A0", Offset = "0xDEABA0", VA = "0x180DEC3A0")]
|
|
private void InitFirstNavigation()
|
|
{
|
|
UINavigationSetter uinavigationSetter6;
|
|
UIHandlerBase[] array6;
|
|
UILabelHandler uilabelHandler2;
|
|
for (;;)
|
|
{
|
|
int num = 0;
|
|
UINavigationSetter uinavigationSetter = UINavigationSetter.Get(UINavigationMode.Horizontal, true, num);
|
|
UIHandlerBase[] array = new UIHandlerBase[4];
|
|
UITeleportHandler uiteleportHandler = this.firstAreaHandlers[0];
|
|
if (uiteleportHandler == 0 || array != 0)
|
|
{
|
|
array[0] = uiteleportHandler;
|
|
UITeleportHandler uiteleportHandler2 = this.firstAreaHandlers[1];
|
|
if (uiteleportHandler2 == 0 || array != 0)
|
|
{
|
|
array[1] = uiteleportHandler2;
|
|
UITeleportHandler uiteleportHandler3 = this.firstAreaHandlers[2];
|
|
if (uiteleportHandler3 == 0 || array != 0)
|
|
{
|
|
array[2] = uiteleportHandler3;
|
|
UITeleportHandler uiteleportHandler4 = this.firstAreaHandlers[3];
|
|
if (uiteleportHandler4 == 0 || array != 0)
|
|
{
|
|
array[3] = uiteleportHandler4;
|
|
uinavigationSetter.Apply(array);
|
|
int num2 = 0;
|
|
UINavigationSetter uinavigationSetter2 = UINavigationSetter.Get(UINavigationMode.Horizontal, true, num2);
|
|
UIHandlerBase[] array2 = new UIHandlerBase[2];
|
|
UITeleportHandler uiteleportHandler5 = this.firstAreaHandlers[4];
|
|
if (uiteleportHandler5 == 0 || array2 != 0)
|
|
{
|
|
array2[0] = uiteleportHandler5;
|
|
UITeleportHandler uiteleportHandler6 = this.firstAreaHandlers[5];
|
|
if (uiteleportHandler6 == 0 || array2 != 0)
|
|
{
|
|
array2[1] = uiteleportHandler6;
|
|
uinavigationSetter2.Apply(array2);
|
|
int num3 = 0;
|
|
UINavigationSetter uinavigationSetter3 = UINavigationSetter.Get(UINavigationMode.Horizontal, true, num3);
|
|
UIHandlerBase[] array3 = new UIHandlerBase[2];
|
|
UITeleportHandler uiteleportHandler7 = this.firstAreaHandlers[6];
|
|
if (uiteleportHandler7 == 0 || array3 != 0)
|
|
{
|
|
array3[0] = uiteleportHandler7;
|
|
UITeleportHandler uiteleportHandler8 = this.firstAreaHandlers[7];
|
|
if (uiteleportHandler8 == 0 || array3 != 0)
|
|
{
|
|
array3[1] = uiteleportHandler8;
|
|
uinavigationSetter3.Apply(array3);
|
|
int num4 = 0;
|
|
UINavigationSetter uinavigationSetter4 = UINavigationSetter.Get(UINavigationMode.Horizontal, true, num4);
|
|
UIHandlerBase[] array4 = new UIHandlerBase[4];
|
|
UITeleportHandler uiteleportHandler9 = this.firstAreaHandlers[8];
|
|
if (uiteleportHandler9 == 0 || array4 != 0)
|
|
{
|
|
array4[0] = uiteleportHandler9;
|
|
UITeleportHandler uiteleportHandler10 = this.firstAreaHandlers[9];
|
|
if (uiteleportHandler10 == 0 || array4 != 0)
|
|
{
|
|
array4[1] = uiteleportHandler10;
|
|
UITeleportHandler uiteleportHandler11 = this.firstAreaHandlers[10];
|
|
if (uiteleportHandler11 == 0 || array4 != 0)
|
|
{
|
|
array4[2] = uiteleportHandler11;
|
|
UITeleportHandler uiteleportHandler12 = this.firstAreaHandlers[11];
|
|
if (uiteleportHandler12 == 0 || array4 != 0)
|
|
{
|
|
array4[3] = uiteleportHandler12;
|
|
uinavigationSetter4.Apply(array4);
|
|
int num5 = 0;
|
|
UINavigationSetter uinavigationSetter5 = UINavigationSetter.Get(UINavigationMode.Vertical, true, num5);
|
|
UIHandlerBase[] array5 = new UIHandlerBase[5];
|
|
UITeleportHandler uiteleportHandler13 = this.firstAreaHandlers[0];
|
|
if (uiteleportHandler13 == 0 || array5 != 0)
|
|
{
|
|
array5[0] = uiteleportHandler13;
|
|
UITeleportHandler uiteleportHandler14 = this.firstAreaHandlers[4];
|
|
if (uiteleportHandler14 == 0 || array5 != 0)
|
|
{
|
|
array5[1] = uiteleportHandler14;
|
|
UITeleportHandler uiteleportHandler15 = this.firstAreaHandlers[6];
|
|
if (uiteleportHandler15 == 0 || array5 != 0)
|
|
{
|
|
array5[2] = uiteleportHandler15;
|
|
UITeleportHandler uiteleportHandler16 = this.firstAreaHandlers[8];
|
|
if (uiteleportHandler16 == 0 || array5 != 0)
|
|
{
|
|
array5[3] = uiteleportHandler16;
|
|
UILabelHandler uilabelHandler = this.backHandler;
|
|
if (uilabelHandler == 0 || array5 != 0)
|
|
{
|
|
array5[4] = uilabelHandler;
|
|
uinavigationSetter5.Apply(array5);
|
|
int num6 = 0;
|
|
uinavigationSetter6 = UINavigationSetter.Get(UINavigationMode.Vertical, true, num6);
|
|
array6 = new UIHandlerBase[5];
|
|
UITeleportHandler uiteleportHandler17 = this.firstAreaHandlers[1];
|
|
if (uiteleportHandler17 == 0 || array6 != 0)
|
|
{
|
|
array6[0] = uiteleportHandler17;
|
|
UITeleportHandler uiteleportHandler18 = this.firstAreaHandlers[5];
|
|
if (uiteleportHandler18 == 0 || array6 != 0)
|
|
{
|
|
array6[1] = uiteleportHandler18;
|
|
UITeleportHandler uiteleportHandler19 = this.firstAreaHandlers[7];
|
|
if (uiteleportHandler19 == 0 || array6 != 0)
|
|
{
|
|
array6[2] = uiteleportHandler19;
|
|
UITeleportHandler uiteleportHandler20 = this.firstAreaHandlers[9];
|
|
if (uiteleportHandler20 == 0 || array6 != 0)
|
|
{
|
|
array6[3] = uiteleportHandler20;
|
|
uilabelHandler2 = this.backHandler;
|
|
if (uilabelHandler2 == 0 || array6 != 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
array6[4] = uilabelHandler2;
|
|
uinavigationSetter6.Apply(array6);
|
|
UITeleportHandler uiteleportHandler21 = this.firstAreaHandlers[2];
|
|
UILabelHandler uilabelHandler3 = this.backHandler;
|
|
uiteleportHandler21.SetupNavigationHandler(Direction2D.Up, uilabelHandler3);
|
|
UITeleportHandler[] array7 = this.firstAreaHandlers;
|
|
int length = array7.Length;
|
|
UITeleportHandler uiteleportHandler22 = array7[2];
|
|
UITeleportHandler uiteleportHandler23 = array7[5];
|
|
uiteleportHandler22.SetupNavigationHandler(Direction2D.Down, uiteleportHandler23);
|
|
UITeleportHandler uiteleportHandler24 = this.firstAreaHandlers[3];
|
|
UILabelHandler uilabelHandler4 = this.backHandler;
|
|
uiteleportHandler24.SetupNavigationHandler(Direction2D.Up, uilabelHandler4);
|
|
UITeleportHandler[] array8 = this.firstAreaHandlers;
|
|
int length2 = array8.Length;
|
|
UITeleportHandler uiteleportHandler25 = array8[3];
|
|
UITeleportHandler uiteleportHandler26 = array8[5];
|
|
uiteleportHandler25.SetupNavigationHandler(Direction2D.Down, uiteleportHandler26);
|
|
UITeleportHandler[] array9 = this.firstAreaHandlers;
|
|
UITeleportHandler uiteleportHandler27 = array9[10];
|
|
UITeleportHandler uiteleportHandler28 = array9[7];
|
|
uiteleportHandler27.SetupNavigationHandler(Direction2D.Up, uiteleportHandler28);
|
|
UITeleportHandler uiteleportHandler29 = this.firstAreaHandlers[10];
|
|
UILabelHandler uilabelHandler5 = this.backHandler;
|
|
uiteleportHandler29.SetupNavigationHandler(Direction2D.Down, uilabelHandler5);
|
|
UITeleportHandler[] array10 = this.firstAreaHandlers;
|
|
UITeleportHandler uiteleportHandler30 = array10[11];
|
|
UITeleportHandler uiteleportHandler31 = array10[7];
|
|
uiteleportHandler30.SetupNavigationHandler(Direction2D.Up, uiteleportHandler31);
|
|
UITeleportHandler uiteleportHandler32 = this.firstAreaHandlers[11];
|
|
UILabelHandler uilabelHandler6 = this.backHandler;
|
|
uiteleportHandler32.SetupNavigationHandler(Direction2D.Down, uilabelHandler6);
|
|
}
|
|
|
|
// Token: 0x06001703 RID: 5891 RVA: 0x00037F6C File Offset: 0x0003616C
|
|
[Token(Token = "0x6001703")]
|
|
[Address(RVA = "0xDED2C0", Offset = "0xDEBAC0", VA = "0x180DED2C0")]
|
|
private void InitLastNavigation()
|
|
{
|
|
UINavigationSetter uinavigationSetter6;
|
|
UIHandlerBase[] array7;
|
|
UILabelHandler uilabelHandler6;
|
|
for (;;)
|
|
{
|
|
int num = 0;
|
|
UINavigationSetter uinavigationSetter = UINavigationSetter.Get(UINavigationMode.Horizontal, true, num);
|
|
UIHandlerBase[] array = new UIHandlerBase[4];
|
|
UITeleportHandler uiteleportHandler = this.lastAreaHandlers[0];
|
|
if (uiteleportHandler == 0 || array != 0)
|
|
{
|
|
array[0] = uiteleportHandler;
|
|
UITeleportHandler uiteleportHandler2 = this.lastAreaHandlers[1];
|
|
if (uiteleportHandler2 == 0 || array != 0)
|
|
{
|
|
array[1] = uiteleportHandler2;
|
|
UITeleportHandler uiteleportHandler3 = this.lastAreaHandlers[2];
|
|
if (uiteleportHandler3 == 0 || array != 0)
|
|
{
|
|
array[2] = uiteleportHandler3;
|
|
UITeleportHandler uiteleportHandler4 = this.lastAreaHandlers[3];
|
|
if (uiteleportHandler4 == 0 || array != 0)
|
|
{
|
|
array[3] = uiteleportHandler4;
|
|
uinavigationSetter.Apply(array);
|
|
int num2 = 0;
|
|
UINavigationSetter uinavigationSetter2 = UINavigationSetter.Get(UINavigationMode.Horizontal, true, num2);
|
|
UIHandlerBase[] array2 = new UIHandlerBase[3];
|
|
UITeleportHandler uiteleportHandler5 = this.lastAreaHandlers[4];
|
|
if (uiteleportHandler5 == 0 || array2 != 0)
|
|
{
|
|
array2[0] = uiteleportHandler5;
|
|
UITeleportHandler uiteleportHandler6 = this.lastAreaHandlers[5];
|
|
if (uiteleportHandler6 == 0 || array2 != 0)
|
|
{
|
|
array2[1] = uiteleportHandler6;
|
|
UITeleportHandler uiteleportHandler7 = this.lastAreaHandlers[6];
|
|
if (uiteleportHandler7 == 0 || array2 != 0)
|
|
{
|
|
array2[2] = uiteleportHandler7;
|
|
uinavigationSetter2.Apply(array2);
|
|
int num3 = 0;
|
|
UINavigationSetter uinavigationSetter3 = UINavigationSetter.Get(UINavigationMode.Vertical, true, num3);
|
|
UIHandlerBase[] array3 = new UIHandlerBase[3];
|
|
UITeleportHandler uiteleportHandler8 = this.lastAreaHandlers[0];
|
|
if (uiteleportHandler8 == 0 || array3 != 0)
|
|
{
|
|
array3[0] = uiteleportHandler8;
|
|
UITeleportHandler uiteleportHandler9 = this.lastAreaHandlers[4];
|
|
if (uiteleportHandler9 == 0 || array3 != 0)
|
|
{
|
|
array3[1] = uiteleportHandler9;
|
|
UILabelHandler uilabelHandler = this.backHandler;
|
|
if (uilabelHandler == 0 || array3 != 0)
|
|
{
|
|
array3[2] = uilabelHandler;
|
|
uinavigationSetter3.Apply(array3);
|
|
int num4 = 0;
|
|
UINavigationSetter uinavigationSetter4 = UINavigationSetter.Get(UINavigationMode.Vertical, true, num4);
|
|
UIHandlerBase[] array4 = new UIHandlerBase[3];
|
|
UITeleportHandler uiteleportHandler10 = this.lastAreaHandlers[1];
|
|
if (uiteleportHandler10 == 0 || array4 != 0)
|
|
{
|
|
array4[0] = uiteleportHandler10;
|
|
UITeleportHandler uiteleportHandler11 = this.lastAreaHandlers[5];
|
|
if (uiteleportHandler11 == 0 || array4 != 0)
|
|
{
|
|
array4[1] = uiteleportHandler11;
|
|
UILabelHandler uilabelHandler2 = this.backHandler;
|
|
if (uilabelHandler2 == 0 || array4 != 0)
|
|
{
|
|
array4[2] = uilabelHandler2;
|
|
uinavigationSetter4.Apply(array4);
|
|
int num5 = 0;
|
|
UINavigationSetter uinavigationSetter5 = UINavigationSetter.Get(UINavigationMode.Vertical, true, num5);
|
|
UIHandlerBase[] array5 = new UIHandlerBase[3];
|
|
UITeleportHandler uiteleportHandler12 = this.lastAreaHandlers[2];
|
|
if (uiteleportHandler12 == 0 || array5 != 0)
|
|
{
|
|
array5[0] = uiteleportHandler12;
|
|
UITeleportHandler uiteleportHandler13 = this.lastAreaHandlers[6];
|
|
if (uiteleportHandler13 == 0 || array5 != 0)
|
|
{
|
|
array5[1] = uiteleportHandler13;
|
|
UILabelHandler uilabelHandler3 = this.backHandler;
|
|
if (uilabelHandler3 == 0 || array5 != 0)
|
|
{
|
|
array5[2] = uilabelHandler3;
|
|
uinavigationSetter5.Apply(array5);
|
|
UITeleportHandler uiteleportHandler14 = this.lastAreaHandlers[3];
|
|
UILabelHandler uilabelHandler4 = this.backHandler;
|
|
uiteleportHandler14.SetupNavigationHandler(Direction2D.Up, uilabelHandler4);
|
|
UITeleportHandler[] array6 = this.lastAreaHandlers;
|
|
int length = array6.Length;
|
|
UITeleportHandler uiteleportHandler15 = array6[3];
|
|
UITeleportHandler uiteleportHandler16 = array6[6];
|
|
uiteleportHandler15.SetupNavigationHandler(Direction2D.Down, uiteleportHandler16);
|
|
int num6 = 0;
|
|
uinavigationSetter6 = UINavigationSetter.Get(UINavigationMode.Horizontal, true, num6);
|
|
array7 = new UIHandlerBase[2];
|
|
UILabelHandler uilabelHandler5 = this.backHandler;
|
|
if (uilabelHandler5 == 0 || array7 != 0)
|
|
{
|
|
array7[0] = uilabelHandler5;
|
|
uilabelHandler6 = this.closeHandler;
|
|
if (uilabelHandler6 == 0 || array7 != 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
array7[1] = uilabelHandler6;
|
|
uinavigationSetter6.Apply(array7);
|
|
}
|
|
|
|
// Token: 0x06001704 RID: 5892 RVA: 0x000382EC File Offset: 0x000364EC
|
|
[Token(Token = "0x6001704")]
|
|
[Address(RVA = "0xDEDDC0", Offset = "0xDEC5C0", VA = "0x180DEDDC0")]
|
|
private void InitSelection()
|
|
{
|
|
UITeleportHandler[] array = this.firstAreaHandlers;
|
|
int num = 0;
|
|
int length = array.Length;
|
|
if (num < length)
|
|
{
|
|
UITeleportHandler uiteleportHandler = array[num];
|
|
Action<UIHandlerBase> action = new Action(this.OnTopHandlerSelected);
|
|
uiteleportHandler.onSelectedHandler = action;
|
|
Action<UIHandlerBase> action2 = new Action(this.OnTopHandlerDeselected);
|
|
uiteleportHandler.onDeselectedHandler = action2;
|
|
num++;
|
|
}
|
|
UITeleportHandler[] array2 = this.lastAreaHandlers;
|
|
int length2 = array2.Length;
|
|
if (num < length2)
|
|
{
|
|
UITeleportHandler uiteleportHandler2 = array2[num];
|
|
Action<UIHandlerBase> action3 = new Action(this.OnTopHandlerSelected);
|
|
uiteleportHandler2.onSelectedHandler = action3;
|
|
Action<UIHandlerBase> action4 = new Action(this.OnTopHandlerDeselected);
|
|
uiteleportHandler2.onDeselectedHandler = action4;
|
|
num++;
|
|
}
|
|
this.backHandler.index = (int)((ulong)900L);
|
|
this.closeHandler.index = (int)((ulong)901L);
|
|
UILabelHandler uilabelHandler = this.backHandler;
|
|
Action<UIHandlerBase> action5 = new Action(this.OnBottomHandlerSelected);
|
|
uilabelHandler.onSelectedHandler = action5;
|
|
UILabelHandler uilabelHandler2 = this.backHandler;
|
|
Action<UIHandlerBase> action6 = new Action(this.OnBottomHandlerDeselected);
|
|
uilabelHandler2.onDeselectedHandler = action6;
|
|
UILabelHandler uilabelHandler3 = this.closeHandler;
|
|
Action<UIHandlerBase> action7 = new Action(this.OnBottomHandlerSelected);
|
|
uilabelHandler3.onSelectedHandler = action7;
|
|
UILabelHandler uilabelHandler4 = this.closeHandler;
|
|
Action<UIHandlerBase> action8 = new Action(this.OnBottomHandlerDeselected);
|
|
uilabelHandler4.onDeselectedHandler = action8;
|
|
List<UIHandlerBase> list = new List();
|
|
UITeleportHandler[] array3 = this.firstAreaHandlers;
|
|
list.AddRange(array3);
|
|
UITeleportHandler[] array4 = this.lastAreaHandlers;
|
|
list.AddRange(array4);
|
|
UILabelHandler uilabelHandler5 = this.backHandler;
|
|
list.Add(uilabelHandler5);
|
|
UILabelHandler uilabelHandler6 = this.closeHandler;
|
|
list.Add(uilabelHandler6);
|
|
UIHandlerBase[] array5 = list.ToArray();
|
|
this.navigator.BindPointerEnterEvent(array5);
|
|
this.navigator.BindPointerExitEvent(array5);
|
|
}
|
|
|
|
// Token: 0x06001705 RID: 5893 RVA: 0x000384AC File Offset: 0x000366AC
|
|
[Token(Token = "0x6001705")]
|
|
[Address(RVA = "0xDEF710", Offset = "0xDEDF10", VA = "0x180DEF710")]
|
|
public void UpdateLocation(GameStage stage, int savePoint)
|
|
{
|
|
this.currentStage = stage;
|
|
this.currentSavePoint = savePoint;
|
|
}
|
|
|
|
// Token: 0x06001706 RID: 5894 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001706")]
|
|
[Address(RVA = "0xDEBBB0", Offset = "0xDEA3B0", VA = "0x180DEBBB0", Slot = "12")]
|
|
protected override void Appear(Action completeHandler)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001707 RID: 5895 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001707")]
|
|
[Address(RVA = "0xDEEAC0", Offset = "0xDED2C0", VA = "0x180DEEAC0")]
|
|
private bool OnFirstAreas()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001708 RID: 5896 RVA: 0x000384C8 File Offset: 0x000366C8
|
|
[Token(Token = "0x6001708")]
|
|
[Address(RVA = "0xDEC2A0", Offset = "0xDEAAA0", VA = "0x180DEC2A0")]
|
|
private UITeleportHandler GetCurrentLocationHandler(UITeleportHandler[] source)
|
|
{
|
|
int num = 0;
|
|
int length = source.Length;
|
|
if (num < length)
|
|
{
|
|
UITeleportHandler uiteleportHandler = source[num];
|
|
GameStage gameStage = this.currentStage;
|
|
if (uiteleportHandler.stage == gameStage)
|
|
{
|
|
int num2 = this.currentSavePoint;
|
|
if (uiteleportHandler.savePoint == num2)
|
|
{
|
|
return uiteleportHandler;
|
|
}
|
|
}
|
|
num++;
|
|
return uiteleportHandler;
|
|
}
|
|
return source[0];
|
|
}
|
|
|
|
// Token: 0x06001709 RID: 5897 RVA: 0x00038520 File Offset: 0x00036720
|
|
[Token(Token = "0x6001709")]
|
|
[Address(RVA = "0x7B1840", Offset = "0x7B0040", VA = "0x1807B1840", Slot = "18")]
|
|
public override void Move(Direction2D direction)
|
|
{
|
|
this.navigator.Move(direction);
|
|
}
|
|
|
|
// Token: 0x0600170A RID: 5898 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600170A")]
|
|
[Address(RVA = "0xDEEBA0", Offset = "0xDED3A0", VA = "0x180DEEBA0")]
|
|
private void OnTopHandlerSelected(UIHandlerBase handler)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600170B RID: 5899 RVA: 0x00038540 File Offset: 0x00036740
|
|
[Token(Token = "0x600170B")]
|
|
[Address(RVA = "0xDEEB40", Offset = "0xDED340", VA = "0x180DEEB40")]
|
|
private void OnTopHandlerDeselected(UIHandlerBase handler)
|
|
{
|
|
this.location.text = "";
|
|
this.topNavigationEffect.Hide();
|
|
}
|
|
|
|
// Token: 0x0600170C RID: 5900 RVA: 0x00038570 File Offset: 0x00036770
|
|
[Token(Token = "0x600170C")]
|
|
[Address(RVA = "0xDEE9D0", Offset = "0xDED1D0", VA = "0x180DEE9D0")]
|
|
private void OnBottomHandlerSelected(UIHandlerBase handler)
|
|
{
|
|
UINavigationEffect uinavigationEffect = this.bottomNavigationEffect;
|
|
Vector2 anchoredPosition = handler.rectTransform.anchoredPosition;
|
|
uinavigationEffect.UpdatePos(anchoredPosition);
|
|
UINavigationEffect uinavigationEffect2 = this.bottomNavigationEffect;
|
|
if (handler.index != 900)
|
|
{
|
|
}
|
|
UILabelHandler uilabelHandler = this.backHandler;
|
|
uinavigationEffect2.UpdateArrowPos(uilabelHandler);
|
|
this.bottomNavigationEffect.Appear();
|
|
Game.PlayHandlerSE(UIHandlerSFX.Navigation);
|
|
}
|
|
|
|
// Token: 0x0600170D RID: 5901 RVA: 0x000385D0 File Offset: 0x000367D0
|
|
[Token(Token = "0x600170D")]
|
|
[Address(RVA = "0x7B1940", Offset = "0x7B0140", VA = "0x1807B1940")]
|
|
private void OnBottomHandlerDeselected(UIHandlerBase handler)
|
|
{
|
|
this.bottomNavigationEffect.Hide();
|
|
}
|
|
|
|
// Token: 0x0600170E RID: 5902 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600170E")]
|
|
[Address(RVA = "0xDEF440", Offset = "0xDEDC40", VA = "0x180DEF440", Slot = "21")]
|
|
public override void Submit()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600170F RID: 5903 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600170F")]
|
|
[Address(RVA = "0xDEEE00", Offset = "0xDED600", VA = "0x180DEEE00")]
|
|
private void PerformBottomSubmissionEffect()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001710 RID: 5904 RVA: 0x000385F0 File Offset: 0x000367F0
|
|
[Token(Token = "0x6001710")]
|
|
[Address(RVA = "0xDEEEE0", Offset = "0xDED6E0", VA = "0x180DEEEE0")]
|
|
private void ShowTeleportMessageBox(UITeleportHandler handler)
|
|
{
|
|
MessageBoxConfig messageBoxConfig;
|
|
MessageBoxHandlerData[] array;
|
|
MessageBoxHandlerData messageBoxHandlerData2;
|
|
for (;;)
|
|
{
|
|
if (!handler.hasUnlocked)
|
|
{
|
|
return;
|
|
}
|
|
GameStage stage = handler.stage;
|
|
this.handlerStage = stage;
|
|
int savePoint = handler.savePoint;
|
|
this.handlerSavePoint = savePoint;
|
|
UIMessageBox messageBox2 = Game.GetMessageBox(MessageBoxStyle.Universal);
|
|
UIMessageBox messageBox = messageBox2;
|
|
string text = Game.<UISystemText>k__BackingField.GetText(39);
|
|
string text2 = this.location.text;
|
|
messageBoxConfig = new MessageBoxConfig(text.Replace("#", text2), 1);
|
|
array = new MessageBoxHandlerData[2];
|
|
string text3 = Game.<UISystemText>k__BackingField.GetText(13);
|
|
Action action = delegate
|
|
{
|
|
messageBox.ClearCloseEvent();
|
|
messageBox.Close();
|
|
this.Teleport();
|
|
};
|
|
UIHandlerSFX uihandlerSFX;
|
|
MessageBoxHandlerData messageBoxHandlerData = new MessageBoxHandlerData(text3, uihandlerSFX, action);
|
|
if (messageBoxHandlerData == 0 || messageBoxHandlerData != 0)
|
|
{
|
|
array[0] = messageBoxHandlerData;
|
|
string text4 = Game.<UISystemText>k__BackingField.GetText(14);
|
|
Action action2 = new Action(messageBox.Close);
|
|
UICanvasSFX uicanvasSFX;
|
|
messageBoxHandlerData2 = new MessageBoxHandlerData(text4, uicanvasSFX, action2);
|
|
if (messageBoxHandlerData2 == 0 || messageBoxHandlerData2 != 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
array[1] = messageBoxHandlerData2;
|
|
MessageBoxConfig messageBoxConfig2 = messageBoxConfig.BindHandlerData(array);
|
|
Action action3 = delegate
|
|
{
|
|
CS$<>8__locals1.<>4__this.SimpleAppear();
|
|
Game.BindUIController(CS$<>8__locals1.<>4__this);
|
|
};
|
|
MessageBoxConfig messageBoxConfig3 = messageBoxConfig2.BindCloseEvent(action3);
|
|
base.SimpleHide();
|
|
Game.UnbindUIController();
|
|
CS$<>8__locals1.messageBox.OpenMsgBox(messageBoxConfig3);
|
|
}
|
|
|
|
// Token: 0x06001711 RID: 5905 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001711")]
|
|
[Address(RVA = "0xDEF590", Offset = "0xDEDD90", VA = "0x180DEF590")]
|
|
private void Teleport()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001712 RID: 5906 RVA: 0x00038744 File Offset: 0x00036944
|
|
[Token(Token = "0x6001712")]
|
|
[Address(RVA = "0xDEE860", Offset = "0xDED060", VA = "0x180DEE860", Slot = "25")]
|
|
public override void Localize(LocalizationData data)
|
|
{
|
|
Text text = this.title;
|
|
string text2 = data.systemText.GetText(178);
|
|
text.text = text2;
|
|
GameTextData systemText = data.systemText;
|
|
UILabelHandler uilabelHandler = this.backHandler;
|
|
string text3 = systemText.GetText(12);
|
|
uilabelHandler.SetLabel(text3);
|
|
GameTextData systemText2 = data.systemText;
|
|
UILabelHandler uilabelHandler2 = this.closeHandler;
|
|
string text4 = systemText2.GetText(183);
|
|
uilabelHandler2.SetLabel(text4);
|
|
GameFontPack fontPack = data.fontPack;
|
|
Text text5 = this.title;
|
|
Font light = fontPack.light;
|
|
text5.font = light;
|
|
GameFontPack fontPack2 = data.fontPack;
|
|
Text text6 = this.location;
|
|
Font light2 = fontPack2.light;
|
|
text6.font = light2;
|
|
GameFontPack fontPack3 = data.fontPack;
|
|
UILabelHandler uilabelHandler3 = this.backHandler;
|
|
Font medium = fontPack3.medium;
|
|
uilabelHandler3.SetFont(medium);
|
|
GameFontPack fontPack4 = data.fontPack;
|
|
UILabelHandler uilabelHandler4 = this.closeHandler;
|
|
Font medium2 = fontPack4.medium;
|
|
uilabelHandler4.SetFont(medium2);
|
|
}
|
|
|
|
// Token: 0x06001713 RID: 5907 RVA: 0x00038848 File Offset: 0x00036A48
|
|
[Token(Token = "0x6001713")]
|
|
[Address(RVA = "0xDEC330", Offset = "0xDEAB30", VA = "0x180DEC330")]
|
|
private UITeleportHandler GetTeleportHandler(int index)
|
|
{
|
|
if (index < 100)
|
|
{
|
|
return this.firstAreaHandlers[index];
|
|
}
|
|
UITeleportHandler[] array = this.lastAreaHandlers;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06001714 RID: 5908 RVA: 0x00038874 File Offset: 0x00036A74
|
|
[Token(Token = "0x6001714")]
|
|
[Address(RVA = "0x7B6570", Offset = "0x7B4D70", VA = "0x1807B6570")]
|
|
public UITeleport()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400218B RID: 8587
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400218B")]
|
|
[SerializeField]
|
|
private Text title;
|
|
|
|
// Token: 0x0400218C RID: 8588
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400218C")]
|
|
[SerializeField]
|
|
private Text location;
|
|
|
|
// Token: 0x0400218D RID: 8589
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x400218D")]
|
|
[SerializeField]
|
|
private UITeleportHandler[] firstAreaHandlers;
|
|
|
|
// Token: 0x0400218E RID: 8590
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x400218E")]
|
|
[SerializeField]
|
|
private UITeleportHandler[] lastAreaHandlers;
|
|
|
|
// Token: 0x0400218F RID: 8591
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x400218F")]
|
|
[SerializeField]
|
|
private UINavigationEffect topNavigationEffect;
|
|
|
|
// Token: 0x04002190 RID: 8592
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4002190")]
|
|
[SerializeField]
|
|
private GameObject[] topHandlerGroups;
|
|
|
|
// Token: 0x04002191 RID: 8593
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x4002191")]
|
|
[SerializeField]
|
|
private UILabelHandler backHandler;
|
|
|
|
// Token: 0x04002192 RID: 8594
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x4002192")]
|
|
[SerializeField]
|
|
private UILabelHandler closeHandler;
|
|
|
|
// Token: 0x04002193 RID: 8595
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x4002193")]
|
|
[SerializeField]
|
|
private Image bottomSubmissionEffect;
|
|
|
|
// Token: 0x04002194 RID: 8596
|
|
[FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x4002194")]
|
|
[SerializeField]
|
|
private UINavigationEffect bottomNavigationEffect;
|
|
|
|
// Token: 0x04002195 RID: 8597
|
|
[FieldOffset(Offset = "0xA8")]
|
|
[Token(Token = "0x4002195")]
|
|
[SerializeField]
|
|
private GameStage currentStage;
|
|
|
|
// Token: 0x04002196 RID: 8598
|
|
[FieldOffset(Offset = "0xAC")]
|
|
[Token(Token = "0x4002196")]
|
|
[SerializeField]
|
|
private int currentSavePoint;
|
|
|
|
// Token: 0x04002197 RID: 8599
|
|
[FieldOffset(Offset = "0xB0")]
|
|
[Token(Token = "0x4002197")]
|
|
[SerializeField]
|
|
private GameStage handlerStage;
|
|
|
|
// Token: 0x04002198 RID: 8600
|
|
[FieldOffset(Offset = "0xB4")]
|
|
[Token(Token = "0x4002198")]
|
|
[SerializeField]
|
|
private int handlerSavePoint;
|
|
|
|
// Token: 0x04002199 RID: 8601
|
|
[Token(Token = "0x4002199")]
|
|
private const int BACK_HANDLER_INDEX = 900;
|
|
|
|
// Token: 0x0400219A RID: 8602
|
|
[Token(Token = "0x400219A")]
|
|
private const int CONFIRM_HANDLER_INDEX = 901;
|
|
}
|