352 lines
11 KiB
C#
352 lines
11 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using MarsSDK;
|
|
using MEC;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
// Token: 0x02000270 RID: 624
|
|
[Token(Token = "0x2000270")]
|
|
public class UIValuablesDesc : GameCanvasBase
|
|
{
|
|
// Token: 0x060017D7 RID: 6103 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60017D7")]
|
|
[Address(RVA = "0x95AAC0", Offset = "0x9592C0", VA = "0x18095AAC0")]
|
|
public void SetValuablesDescData(ValuablesDescData descData)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060017D8 RID: 6104 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60017D8")]
|
|
[Address(RVA = "0x959BE0", Offset = "0x9583E0", VA = "0x180959BE0", Slot = "11")]
|
|
public override void Init()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060017D9 RID: 6105 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60017D9")]
|
|
[Address(RVA = "0x95A770", Offset = "0x958F70", VA = "0x18095A770")]
|
|
private void OnControllerChanged(ControllerDevice device)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060017DA RID: 6106 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60017DA")]
|
|
[Address(RVA = "0x959880", Offset = "0x958080", VA = "0x180959880", Slot = "12")]
|
|
protected override void Appear(Action completeHandler)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060017DB RID: 6107 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60017DB")]
|
|
[Address(RVA = "0x959B20", Offset = "0x958320", VA = "0x180959B20", Slot = "13")]
|
|
protected override void Hide(Action completeHandler)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060017DC RID: 6108 RVA: 0x0003A9A0 File Offset: 0x00038BA0
|
|
[Token(Token = "0x60017DC")]
|
|
[Address(RVA = "0x7B1840", Offset = "0x7B0040", VA = "0x1807B1840", Slot = "18")]
|
|
public override void Move(Direction2D direction)
|
|
{
|
|
this.navigator.Move(direction);
|
|
}
|
|
|
|
// Token: 0x060017DD RID: 6109 RVA: 0x0003A9C0 File Offset: 0x00038BC0
|
|
[Token(Token = "0x60017DD")]
|
|
[Address(RVA = "0x95AD20", Offset = "0x959520", VA = "0x18095AD20", Slot = "21")]
|
|
public override void Submit()
|
|
{
|
|
UIHandlerBase currentHandler = this.navigator.currentHandler;
|
|
int num = 0;
|
|
if (!(currentHandler == num))
|
|
{
|
|
int index = this.navigator.currentHandler.index;
|
|
if (index == 0)
|
|
{
|
|
this.PerformSubmitEffect();
|
|
Game.PlayCanvasSE(UICanvasSFX.Close);
|
|
base.Close();
|
|
}
|
|
if (index == 1)
|
|
{
|
|
this.PerformSubmitEffect();
|
|
Game.CloseStageUI();
|
|
}
|
|
Game.PlayHandlerScaleEffect(this.navigator.currentHandler);
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060017DE RID: 6110 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60017DE")]
|
|
[Address(RVA = "0x95AAF0", Offset = "0x9592F0", VA = "0x18095AAF0", Slot = "24")]
|
|
public override void SpecialAction()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060017DF RID: 6111 RVA: 0x0003AA34 File Offset: 0x00038C34
|
|
[Token(Token = "0x60017DF")]
|
|
[Address(RVA = "0x95A2E0", Offset = "0x958AE0", VA = "0x18095A2E0", Slot = "25")]
|
|
public override void Localize(LocalizationData data)
|
|
{
|
|
string[] array3;
|
|
string text11;
|
|
for (;;)
|
|
{
|
|
Text text = this.title;
|
|
string text2 = data.systemText.GetText(11);
|
|
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.confirmHandler;
|
|
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.valuablesName;
|
|
Font light2 = fontPack2.light;
|
|
text6.font = light2;
|
|
GameFontPack fontPack3 = data.fontPack;
|
|
Text text7 = this.description;
|
|
Font regular = fontPack3.regular;
|
|
text7.font = regular;
|
|
GameFontPack fontPack4 = data.fontPack;
|
|
UILabelHandler uilabelHandler3 = this.backHandler;
|
|
Font medium = fontPack4.medium;
|
|
uilabelHandler3.SetFont(medium);
|
|
GameFontPack fontPack5 = data.fontPack;
|
|
UILabelHandler uilabelHandler4 = this.confirmHandler;
|
|
Font medium2 = fontPack5.medium;
|
|
uilabelHandler4.SetFont(medium2);
|
|
GameFontPack fontPack6 = data.fontPack;
|
|
Text text8 = this.voiceOperation;
|
|
Font light3 = fontPack6.light;
|
|
text8.font = light3;
|
|
string text9 = data.systemText.GetText(270);
|
|
string[] array = text9.Split(new char[] { (char)((uint)47) });
|
|
string[] array2 = this.voiceOperationText;
|
|
string text10 = array[0].Trim();
|
|
if (text10 == 0 || text10 != 0)
|
|
{
|
|
array2[0] = text10;
|
|
array3 = this.voiceOperationText;
|
|
text11 = array[1].Trim();
|
|
if (text11 == 0 || text11 != 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
array3[1] = text11;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060017E0 RID: 6112 RVA: 0x0003AC04 File Offset: 0x00038E04
|
|
[Token(Token = "0x60017E0")]
|
|
[Address(RVA = "0x95AA70", Offset = "0x959270", VA = "0x18095AA70")]
|
|
private void ResetUIStatus()
|
|
{
|
|
UINavigator navigator = this.navigator;
|
|
UILabelHandler uilabelHandler = this.backHandler;
|
|
navigator.SetDefaultHandler(uilabelHandler);
|
|
GameObject gameObject = this.interactionIcon.gameObject;
|
|
int num = 0;
|
|
gameObject.SetActive(num != 0);
|
|
}
|
|
|
|
// Token: 0x060017E1 RID: 6113 RVA: 0x0003AC44 File Offset: 0x00038E44
|
|
[Token(Token = "0x60017E1")]
|
|
[Address(RVA = "0x95A670", Offset = "0x958E70", VA = "0x18095A670")]
|
|
private void MarkUIDirty()
|
|
{
|
|
string name = this.currentValuablesDescData.Name;
|
|
Text text = this.valuablesName;
|
|
string text2 = name.Replace("\n", "");
|
|
text.text = text2;
|
|
Text text3 = this.description;
|
|
string text4 = this.currentValuablesDescData.Description;
|
|
text3.text = text4;
|
|
Sprite[] array = this.iconSprites;
|
|
Image image = this.mainIcon;
|
|
ValuablesDescData valuablesDescData = this.currentValuablesDescData;
|
|
Sprite sprite = array[valuablesDescData];
|
|
image.sprite = sprite;
|
|
}
|
|
|
|
// Token: 0x060017E2 RID: 6114 RVA: 0x0003ACCC File Offset: 0x00038ECC
|
|
[Token(Token = "0x60017E2")]
|
|
[Address(RVA = "0x95A840", Offset = "0x959040", VA = "0x18095A840")]
|
|
private void OnHandlerSelected(UIHandlerBase handler)
|
|
{
|
|
if (!this.navigationEffect.gameObject.activeInHierarchy)
|
|
{
|
|
this.navigationEffect.gameObject.SetActive(true);
|
|
}
|
|
UINavigationEffect uinavigationEffect = this.navigationEffect;
|
|
Vector2 anchoredPosition = handler.rectTransform.anchoredPosition;
|
|
uinavigationEffect.UpdatePos(anchoredPosition);
|
|
UINavigationEffect uinavigationEffect2 = this.navigationEffect;
|
|
if (handler.index != 0)
|
|
{
|
|
}
|
|
UILabelHandler uilabelHandler = this.backHandler;
|
|
uinavigationEffect2.UpdateArrowPos(uilabelHandler);
|
|
Game.PlayHandlerSE(UIHandlerSFX.Navigation);
|
|
}
|
|
|
|
// Token: 0x060017E3 RID: 6115 RVA: 0x0003AD44 File Offset: 0x00038F44
|
|
[Token(Token = "0x60017E3")]
|
|
[Address(RVA = "0x95A7D0", Offset = "0x958FD0", VA = "0x18095A7D0")]
|
|
private void OnHandlerDeselected(UIHandlerBase handler)
|
|
{
|
|
if (this.navigationEffect.gameObject.activeInHierarchy)
|
|
{
|
|
GameObject gameObject = this.navigationEffect.gameObject;
|
|
int num = 0;
|
|
gameObject.SetActive(num != 0);
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060017E4 RID: 6116 RVA: 0x0003AD80 File Offset: 0x00038F80
|
|
[Token(Token = "0x60017E4")]
|
|
[Address(RVA = "0x95A970", Offset = "0x959170", VA = "0x18095A970")]
|
|
private void PerformSubmitEffect()
|
|
{
|
|
RectTransform rectTransform = this.interactionIcon.rectTransform;
|
|
Vector2 anchoredPosition = this.navigator.currentHandler.rectTransform.anchoredPosition;
|
|
rectTransform.anchoredPosition = anchoredPosition;
|
|
this.interactionIcon.gameObject.SetActive(true);
|
|
}
|
|
|
|
// Token: 0x060017E5 RID: 6117 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60017E5")]
|
|
[Address(RVA = "0x95AA00", Offset = "0x959200", VA = "0x18095AA00")]
|
|
private IEnumerator<float> PlayVoice()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060017E6 RID: 6118 RVA: 0x0003ADD0 File Offset: 0x00038FD0
|
|
[Token(Token = "0x60017E6")]
|
|
[Address(RVA = "0x95AE80", Offset = "0x959680", VA = "0x18095AE80")]
|
|
public UIValuablesDesc()
|
|
{
|
|
string[] array = new string[2];
|
|
this.voiceOperationText = array;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x04002231 RID: 8753
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4002231")]
|
|
[SerializeField]
|
|
private Text title;
|
|
|
|
// Token: 0x04002232 RID: 8754
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4002232")]
|
|
[SerializeField]
|
|
private UILabelHandler backHandler;
|
|
|
|
// Token: 0x04002233 RID: 8755
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4002233")]
|
|
[SerializeField]
|
|
private UILabelHandler confirmHandler;
|
|
|
|
// Token: 0x04002234 RID: 8756
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4002234")]
|
|
[SerializeField]
|
|
private Text valuablesName;
|
|
|
|
// Token: 0x04002235 RID: 8757
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4002235")]
|
|
[SerializeField]
|
|
private Text description;
|
|
|
|
// Token: 0x04002236 RID: 8758
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4002236")]
|
|
[SerializeField]
|
|
private Image mainIcon;
|
|
|
|
// Token: 0x04002237 RID: 8759
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x4002237")]
|
|
[SerializeField]
|
|
private Sprite[] iconSprites;
|
|
|
|
// Token: 0x04002238 RID: 8760
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x4002238")]
|
|
[SerializeField]
|
|
private UINavigationEffect navigationEffect;
|
|
|
|
// Token: 0x04002239 RID: 8761
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x4002239")]
|
|
[SerializeField]
|
|
private Image interactionIcon;
|
|
|
|
// Token: 0x0400223A RID: 8762
|
|
[FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x400223A")]
|
|
[SerializeField]
|
|
private RectTransform inputIconRoot;
|
|
|
|
// Token: 0x0400223B RID: 8763
|
|
[FieldOffset(Offset = "0xA8")]
|
|
[Token(Token = "0x400223B")]
|
|
[SerializeField]
|
|
private UIInputIcon inputIcon;
|
|
|
|
// Token: 0x0400223C RID: 8764
|
|
[FieldOffset(Offset = "0xB0")]
|
|
[Token(Token = "0x400223C")]
|
|
[SerializeField]
|
|
private Text voiceOperation;
|
|
|
|
// Token: 0x0400223D RID: 8765
|
|
[FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x400223D")]
|
|
[SerializeField]
|
|
private AudioSource voicePlayer;
|
|
|
|
// Token: 0x0400223E RID: 8766
|
|
[FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x400223E")]
|
|
private ValuablesDescData currentValuablesDescData;
|
|
|
|
// Token: 0x0400223F RID: 8767
|
|
[FieldOffset(Offset = "0xD8")]
|
|
[Token(Token = "0x400223F")]
|
|
private Dictionary<int, string> voiceMap;
|
|
|
|
// Token: 0x04002240 RID: 8768
|
|
[FieldOffset(Offset = "0xE0")]
|
|
[Token(Token = "0x4002240")]
|
|
private CoroutineHandle voiceProcessor;
|
|
|
|
// Token: 0x04002241 RID: 8769
|
|
[FieldOffset(Offset = "0xE8")]
|
|
[Token(Token = "0x4002241")]
|
|
private string[] voiceOperationText;
|
|
}
|