using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using MarsSDK;
using MEC;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x020002B2 RID: 690
[Token(Token = "0x20002B2")]
public class UIValuablesDesc : GameCanvasBase
{
	// Token: 0x060019D9 RID: 6617 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019D9")]
	[Address(RVA = "0xCBC830", Offset = "0xCBB830", VA = "0x180CBC830")]
	public void SetValuablesDescData(ValuablesDescData descData)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019DA RID: 6618 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019DA")]
	[Address(RVA = "0xCBB9C0", Offset = "0xCBA9C0", VA = "0x180CBB9C0", Slot = "11")]
	public override void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019DB RID: 6619 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019DB")]
	[Address(RVA = "0xCBC4E0", Offset = "0xCBB4E0", VA = "0x180CBC4E0")]
	private void OnControllerChanged(ControllerDevice device)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019DC RID: 6620 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019DC")]
	[Address(RVA = "0xCBB660", Offset = "0xCBA660", VA = "0x180CBB660", Slot = "12")]
	protected override void Appear(Action completeHandler)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019DD RID: 6621 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019DD")]
	[Address(RVA = "0xCBB900", Offset = "0xCBA900", VA = "0x180CBB900", Slot = "13")]
	protected override void Hide(Action completeHandler)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019DE RID: 6622 RVA: 0x0003F9A4 File Offset: 0x0003DBA4
	[Token(Token = "0x60019DE")]
	[Address(RVA = "0x94CB50", Offset = "0x94BB50", VA = "0x18094CB50", Slot = "18")]
	public override void Move(Direction2D direction)
	{
		this.navigator.Move(direction);
	}

	// Token: 0x060019DF RID: 6623 RVA: 0x0003F9C4 File Offset: 0x0003DBC4
	[Token(Token = "0x60019DF")]
	[Address(RVA = "0xCBCA90", Offset = "0xCBBA90", VA = "0x180CBCA90", 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: 0x060019E0 RID: 6624 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019E0")]
	[Address(RVA = "0xCBC860", Offset = "0xCBB860", VA = "0x180CBC860", Slot = "24")]
	public override void SpecialAction()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019E1 RID: 6625 RVA: 0x0003FA38 File Offset: 0x0003DC38
	[Token(Token = "0x60019E1")]
	[Address(RVA = "0xCBC050", Offset = "0xCBB050", VA = "0x180CBC050", 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(335);
			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: 0x060019E2 RID: 6626 RVA: 0x0003FC08 File Offset: 0x0003DE08
	[Token(Token = "0x60019E2")]
	[Address(RVA = "0xCBC7E0", Offset = "0xCBB7E0", VA = "0x180CBC7E0")]
	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: 0x060019E3 RID: 6627 RVA: 0x0003FC48 File Offset: 0x0003DE48
	[Token(Token = "0x60019E3")]
	[Address(RVA = "0xCBC3E0", Offset = "0xCBB3E0", VA = "0x180CBC3E0")]
	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: 0x060019E4 RID: 6628 RVA: 0x0003FCD0 File Offset: 0x0003DED0
	[Token(Token = "0x60019E4")]
	[Address(RVA = "0xCBC5B0", Offset = "0xCBB5B0", VA = "0x180CBC5B0")]
	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: 0x060019E5 RID: 6629 RVA: 0x0003FD48 File Offset: 0x0003DF48
	[Token(Token = "0x60019E5")]
	[Address(RVA = "0xCBC540", Offset = "0xCBB540", VA = "0x180CBC540")]
	private void OnHandlerDeselected(UIHandlerBase handler)
	{
		if (this.navigationEffect.gameObject.activeInHierarchy)
		{
			GameObject gameObject = this.navigationEffect.gameObject;
			int num = 0;
			gameObject.SetActive(num != 0);
			return;
		}
	}

	// Token: 0x060019E6 RID: 6630 RVA: 0x0003FD84 File Offset: 0x0003DF84
	[Token(Token = "0x60019E6")]
	[Address(RVA = "0xCBC6E0", Offset = "0xCBB6E0", VA = "0x180CBC6E0")]
	private void PerformSubmitEffect()
	{
		RectTransform rectTransform = this.interactionIcon.rectTransform;
		Vector2 anchoredPosition = this.navigator.currentHandler.rectTransform.anchoredPosition;
		rectTransform.anchoredPosition = anchoredPosition;
		this.interactionIcon.gameObject.SetActive(true);
	}

	// Token: 0x060019E7 RID: 6631 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019E7")]
	[Address(RVA = "0xCBC770", Offset = "0xCBB770", VA = "0x180CBC770")]
	private IEnumerator<float> PlayVoice()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019E8 RID: 6632 RVA: 0x0003FDD4 File Offset: 0x0003DFD4
	[Token(Token = "0x60019E8")]
	[Address(RVA = "0xCBCBF0", Offset = "0xCBBBF0", VA = "0x180CBCBF0")]
	public UIValuablesDesc()
	{
		string[] array = new string[2];
		this.voiceOperationText = array;
		base..ctor();
	}

	// Token: 0x0400244B RID: 9291
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x400244B")]
	[SerializeField]
	private Text title;

	// Token: 0x0400244C RID: 9292
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x400244C")]
	[SerializeField]
	private UILabelHandler backHandler;

	// Token: 0x0400244D RID: 9293
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x400244D")]
	[SerializeField]
	private UILabelHandler confirmHandler;

	// Token: 0x0400244E RID: 9294
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x400244E")]
	[SerializeField]
	private Text valuablesName;

	// Token: 0x0400244F RID: 9295
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x400244F")]
	[SerializeField]
	private Text description;

	// Token: 0x04002450 RID: 9296
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4002450")]
	[SerializeField]
	private Image mainIcon;

	// Token: 0x04002451 RID: 9297
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x4002451")]
	[SerializeField]
	private Sprite[] iconSprites;

	// Token: 0x04002452 RID: 9298
	[FieldOffset(Offset = "0x90")]
	[Token(Token = "0x4002452")]
	[SerializeField]
	private UINavigationEffect navigationEffect;

	// Token: 0x04002453 RID: 9299
	[FieldOffset(Offset = "0x98")]
	[Token(Token = "0x4002453")]
	[SerializeField]
	private Image interactionIcon;

	// Token: 0x04002454 RID: 9300
	[FieldOffset(Offset = "0xA0")]
	[Token(Token = "0x4002454")]
	[SerializeField]
	private RectTransform inputIconRoot;

	// Token: 0x04002455 RID: 9301
	[FieldOffset(Offset = "0xA8")]
	[Token(Token = "0x4002455")]
	[SerializeField]
	private UIInputIcon inputIcon;

	// Token: 0x04002456 RID: 9302
	[FieldOffset(Offset = "0xB0")]
	[Token(Token = "0x4002456")]
	[SerializeField]
	private Text voiceOperation;

	// Token: 0x04002457 RID: 9303
	[FieldOffset(Offset = "0xB8")]
	[Token(Token = "0x4002457")]
	[SerializeField]
	private AudioSource voicePlayer;

	// Token: 0x04002458 RID: 9304
	[FieldOffset(Offset = "0xC0")]
	[Token(Token = "0x4002458")]
	private ValuablesDescData currentValuablesDescData;

	// Token: 0x04002459 RID: 9305
	[FieldOffset(Offset = "0xD8")]
	[Token(Token = "0x4002459")]
	private Dictionary<int, string> voiceMap;

	// Token: 0x0400245A RID: 9306
	[FieldOffset(Offset = "0xE0")]
	[Token(Token = "0x400245A")]
	private CoroutineHandle voiceProcessor;

	// Token: 0x0400245B RID: 9307
	[FieldOffset(Offset = "0xE8")]
	[Token(Token = "0x400245B")]
	private string[] voiceOperationText;
}
