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

// Token: 0x020002B5 RID: 693
[Token(Token = "0x20002B5")]
public class UIValuablesGuide : GameCanvasBase
{
	// Token: 0x17000101 RID: 257
	// (get) Token: 0x060019F0 RID: 6640 RVA: 0x0003FEA4 File Offset: 0x0003E0A4
	[Token(Token = "0x17000101")]
	private int currentTotalPages
	{
		[Token(Token = "0x60019F0")]
		[Address(RVA = "0xCBF990", Offset = "0xCBE990", VA = "0x180CBF990")]
		get
		{
			return this.valuablesHandlersList._size;
		}
	}

	// Token: 0x060019F1 RID: 6641 RVA: 0x0003FEC4 File Offset: 0x0003E0C4
	[Token(Token = "0x60019F1")]
	[Address(RVA = "0xCBE020", Offset = "0xCBD020", VA = "0x180CBE020", Slot = "11")]
	public override void Init()
	{
		this.InitValuablesHandlers();
		this.InitPageDots();
		this.switchPageTip.Init();
	}

	// Token: 0x060019F2 RID: 6642 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019F2")]
	[Address(RVA = "0xCBCC50", Offset = "0xCBBC50", VA = "0x180CBCC50", Slot = "12")]
	protected override void Appear(Action completeHandler)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019F3 RID: 6643 RVA: 0x0003FEF0 File Offset: 0x0003E0F0
	[Token(Token = "0x60019F3")]
	[Address(RVA = "0xCBD070", Offset = "0xCBC070", VA = "0x180CBD070", Slot = "13")]
	protected override void Hide(Action completeHandler)
	{
		GamePropertyData props = Game.GameSave.props;
		bool flag = props.TryResetAllNewPropStates();
		bool flag2 = props != 0;
		this.isDirty = flag2;
		base.Hide(completeHandler);
	}

	// Token: 0x060019F4 RID: 6644 RVA: 0x0003FF30 File Offset: 0x0003E130
	[Token(Token = "0x60019F4")]
	[Address(RVA = "0x94CB50", Offset = "0x94BB50", VA = "0x18094CB50", Slot = "18")]
	public override void Move(Direction2D direction)
	{
		this.navigator.Move(direction);
	}

	// Token: 0x060019F5 RID: 6645 RVA: 0x0003FF50 File Offset: 0x0003E150
	[Token(Token = "0x60019F5")]
	[Address(RVA = "0xCBEFA0", Offset = "0xCBDFA0", VA = "0x180CBEFA0", Slot = "19")]
	public override void SwitchLeftward()
	{
		this.arrowController.SwitchPageLeftward();
	}

	// Token: 0x060019F6 RID: 6646 RVA: 0x0003FF70 File Offset: 0x0003E170
	[Token(Token = "0x60019F6")]
	[Address(RVA = "0xCBEFE0", Offset = "0xCBDFE0", VA = "0x180CBEFE0")]
	private int TrySwitchLeftward()
	{
		if (!this.isMoveTweening)
		{
			int num = this.currentPageIndex;
			if (num != 0)
			{
				this.previousPageIndex = num;
				this.currentPageIndex = num;
				this.DoMoveTween(225f);
				return this.currentPageIndex;
			}
		}
		return -1;
	}

	// Token: 0x060019F7 RID: 6647 RVA: 0x0003FFB4 File Offset: 0x0003E1B4
	[Token(Token = "0x60019F7")]
	[Address(RVA = "0xCBEFC0", Offset = "0xCBDFC0", VA = "0x180CBEFC0", Slot = "20")]
	public override void SwitchRightward()
	{
		this.arrowController.SwitchPageRightward();
	}

	// Token: 0x060019F8 RID: 6648 RVA: 0x0003FFD4 File Offset: 0x0003E1D4
	[Token(Token = "0x60019F8")]
	[Address(RVA = "0xCBF040", Offset = "0xCBE040", VA = "0x180CBF040")]
	private int TrySwitchRightward()
	{
		if (!this.isMoveTweening)
		{
			int num = this.currentPageIndex;
			int size = this.valuablesHandlersList._size;
			if (num != size)
			{
				int num2 = this.currentPageIndex;
				this.previousPageIndex = num2;
				num2++;
				this.currentPageIndex = num2;
				this.DoMoveTween(-225f);
				return this.currentPageIndex;
			}
		}
		return -1;
	}

	// Token: 0x060019F9 RID: 6649 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019F9")]
	[Address(RVA = "0xCBEC40", Offset = "0xCBDC40", VA = "0x180CBEC40", Slot = "21")]
	public override void Submit()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019FA RID: 6650 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019FA")]
	[Address(RVA = "0xCBE060", Offset = "0xCBD060", VA = "0x180CBE060", Slot = "25")]
	public override void Localize(LocalizationData data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019FB RID: 6651 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019FB")]
	[Address(RVA = "0xCBD350", Offset = "0xCBC350", VA = "0x180CBD350")]
	private void InitValuablesHandlers()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019FC RID: 6652 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019FC")]
	[Address(RVA = "0xCBD120", Offset = "0xCBC120", VA = "0x180CBD120")]
	private void InitPageDots()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019FD RID: 6653 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019FD")]
	[Address(RVA = "0xCBE5E0", Offset = "0xCBD5E0", VA = "0x180CBE5E0")]
	private void ResetUIStatus()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019FE RID: 6654 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019FE")]
	[Address(RVA = "0xCBEAB0", Offset = "0xCBDAB0", VA = "0x180CBEAB0")]
	private void SetupBackHandler(Direction2D direction2D, IEnumerable<UIHandlerBase> handlerBases)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060019FF RID: 6655 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60019FF")]
	[Address(RVA = "0xCBCD20", Offset = "0xCBBD20", VA = "0x180CBCD20")]
	private void DoMoveTween(float offset)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A00 RID: 6656 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A00")]
	[Address(RVA = "0xCBE820", Offset = "0xCBD820", VA = "0x180CBE820")]
	private void SetUIDirty()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A01 RID: 6657 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A01")]
	[Address(RVA = "0xCBF440", Offset = "0xCBE440", VA = "0x180CBF440")]
	private void UpdateHandlersState()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A02 RID: 6658 RVA: 0x00040034 File Offset: 0x0003E234
	[Token(Token = "0x6001A02")]
	[Address(RVA = "0xCBF720", Offset = "0xCBE720", VA = "0x180CBF720")]
	private void UpdatePageIndex(int value)
	{
		int num = this.currentPageIndex;
		this.previousPageIndex = num;
		this.currentPageIndex = value;
	}

	// Token: 0x06001A03 RID: 6659 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A03")]
	[Address(RVA = "0xCBF2F0", Offset = "0xCBE2F0", VA = "0x180CBF2F0")]
	private void UpdateDefaultHandler()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A04 RID: 6660 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A04")]
	[Address(RVA = "0xCBF1C0", Offset = "0xCBE1C0", VA = "0x180CBF1C0")]
	private void UpdateBackHandlerNavigation()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A05 RID: 6661 RVA: 0x00040058 File Offset: 0x0003E258
	[Token(Token = "0x6001A05")]
	[Address(RVA = "0xCBF740", Offset = "0xCBE740", VA = "0x180CBF740")]
	private void UpdatePageNumAndDots()
	{
		Image[] array = this.pageDots;
		int num = 0;
		if (num < array.Length)
		{
			Image image = array[num];
			Sprite[] array2 = this.pageDotSprites;
			if (num == this.currentPageIndex)
			{
			}
			Sprite sprite = array2[0];
			image.sprite = sprite;
			Image[] array3 = this.pageDots;
			num++;
		}
		int num2 = this.currentPageIndex;
		num2++;
		Text text = this.pageNumber;
		int size = this.valuablesHandlersList._size;
		string text2 = string.Format("{0} / {1}", num2, num2);
		text.text = text2;
	}

	// Token: 0x06001A06 RID: 6662 RVA: 0x000400F0 File Offset: 0x0003E2F0
	[Token(Token = "0x6001A06")]
	[Address(RVA = "0xCBE4A0", Offset = "0xCBD4A0", VA = "0x180CBE4A0")]
	private void OnHandlerSelected(UIHandlerBase handler)
	{
		UINavigationEffect uinavigationEffect = this.buttonNavigation;
		Vector2 anchoredPosition = handler.rectTransform.anchoredPosition;
		uinavigationEffect.UpdatePos(anchoredPosition);
		this.buttonNavigation.Appear();
		Game.PlayHandlerSE(UIHandlerSFX.Navigation);
	}

	// Token: 0x06001A07 RID: 6663 RVA: 0x00040130 File Offset: 0x0003E330
	[Token(Token = "0x6001A07")]
	[Address(RVA = "0xCBE470", Offset = "0xCBD470", VA = "0x180CBE470")]
	private void OnHandlerDeselected(UIHandlerBase handler)
	{
		this.buttonNavigation.Hide();
	}

	// Token: 0x06001A08 RID: 6664 RVA: 0x00040150 File Offset: 0x0003E350
	[Token(Token = "0x6001A08")]
	[Address(RVA = "0xCBE3C0", Offset = "0xCBD3C0", VA = "0x180CBE3C0")]
	private void OnBackHandlerSelected(UIHandlerBase handler)
	{
		UINavigationEffect uinavigationEffect = this.backNavigation;
		Vector2 anchoredPosition = handler.rectTransform.anchoredPosition;
		uinavigationEffect.UpdatePos(anchoredPosition);
		this.backNavigation.Appear();
		Game.PlayHandlerSE(UIHandlerSFX.Navigation);
	}

	// Token: 0x06001A09 RID: 6665 RVA: 0x00040190 File Offset: 0x0003E390
	[Token(Token = "0x6001A09")]
	[Address(RVA = "0xCBE390", Offset = "0xCBD390", VA = "0x180CBE390")]
	private void OnBackHandlerDeselected(UIHandlerBase handler)
	{
		this.backNavigation.Hide();
	}

	// Token: 0x06001A0A RID: 6666 RVA: 0x000401B0 File Offset: 0x0003E3B0
	[Token(Token = "0x6001A0A")]
	[Address(RVA = "0xCBE550", Offset = "0xCBD550", VA = "0x180CBE550")]
	private void PerformSubmitEffect()
	{
		RectTransform rectTransform = this.interactionIcon.rectTransform;
		Vector2 anchoredPosition = this.navigator.currentHandler.rectTransform.anchoredPosition;
		rectTransform.anchoredPosition = anchoredPosition;
		this.interactionIcon.gameObject.SetActive(true);
	}

	// Token: 0x06001A0B RID: 6667 RVA: 0x00040200 File Offset: 0x0003E400
	[Token(Token = "0x6001A0B")]
	[Address(RVA = "0xCBF910", Offset = "0xCBE910", VA = "0x180CBF910")]
	public UIValuablesGuide()
	{
		List<UIValuablesHandler[]> list = new List();
		this.valuablesHandlersList = list;
		base..ctor();
	}

	// Token: 0x04002462 RID: 9314
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x4002462")]
	[SerializeField]
	private Text title;

	// Token: 0x04002463 RID: 9315
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x4002463")]
	[SerializeField]
	private RectTransform valuablesHandlersRoot;

	// Token: 0x04002464 RID: 9316
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x4002464")]
	[SerializeField]
	private UILabelHandler backHandler;

	// Token: 0x04002465 RID: 9317
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4002465")]
	[SerializeField]
	private UISwitchArrowController arrowController;

	// Token: 0x04002466 RID: 9318
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x4002466")]
	[SerializeField]
	private UIValuablesHandler valuablesHandlerTemplate;

	// Token: 0x04002467 RID: 9319
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4002467")]
	[SerializeField]
	private CanvasGroup valuablesGroupTemplate;

	// Token: 0x04002468 RID: 9320
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x4002468")]
	[SerializeField]
	private Text pageNumber;

	// Token: 0x04002469 RID: 9321
	[FieldOffset(Offset = "0x90")]
	[Token(Token = "0x4002469")]
	[SerializeField]
	private RectTransform pageDotsRoot;

	// Token: 0x0400246A RID: 9322
	[FieldOffset(Offset = "0x98")]
	[Token(Token = "0x400246A")]
	[SerializeField]
	private Image pageDotTemplate;

	// Token: 0x0400246B RID: 9323
	[FieldOffset(Offset = "0xA0")]
	[Token(Token = "0x400246B")]
	[SerializeField]
	private Sprite[] pageDotSprites;

	// Token: 0x0400246C RID: 9324
	[FieldOffset(Offset = "0xA8")]
	[Token(Token = "0x400246C")]
	[SerializeField]
	private UINavigationEffect buttonNavigation;

	// Token: 0x0400246D RID: 9325
	[FieldOffset(Offset = "0xB0")]
	[Token(Token = "0x400246D")]
	[SerializeField]
	private UINavigationEffect backNavigation;

	// Token: 0x0400246E RID: 9326
	[FieldOffset(Offset = "0xB8")]
	[Token(Token = "0x400246E")]
	[SerializeField]
	private Image interactionIcon;

	// Token: 0x0400246F RID: 9327
	[FieldOffset(Offset = "0xC0")]
	[Token(Token = "0x400246F")]
	[SerializeField]
	private UISwitchPageTip switchPageTip;

	// Token: 0x04002470 RID: 9328
	[FieldOffset(Offset = "0xC8")]
	[Token(Token = "0x4002470")]
	private CanvasGroup[] valuablesGroups;

	// Token: 0x04002471 RID: 9329
	[FieldOffset(Offset = "0xD0")]
	[Token(Token = "0x4002471")]
	private List<UIValuablesHandler[]> valuablesHandlersList;

	// Token: 0x04002472 RID: 9330
	[FieldOffset(Offset = "0xD8")]
	[Token(Token = "0x4002472")]
	private Image[] pageDots;

	// Token: 0x04002473 RID: 9331
	[FieldOffset(Offset = "0xE0")]
	[Token(Token = "0x4002473")]
	private int currentUnlockedPropsCount;

	// Token: 0x04002474 RID: 9332
	[FieldOffset(Offset = "0xE4")]
	[Token(Token = "0x4002474")]
	private bool isDirty;

	// Token: 0x04002475 RID: 9333
	[FieldOffset(Offset = "0xE5")]
	[Token(Token = "0x4002475")]
	private bool isMoveTweening;

	// Token: 0x04002476 RID: 9334
	[FieldOffset(Offset = "0xE8")]
	[Token(Token = "0x4002476")]
	private int previousPageIndex;

	// Token: 0x04002477 RID: 9335
	[FieldOffset(Offset = "0xEC")]
	[Token(Token = "0x4002477")]
	private int currentPageIndex;

	// Token: 0x04002478 RID: 9336
	[Token(Token = "0x4002478")]
	private const int MAXIMUM_HANDLERS_LENGTH_PER_PAGE = 30;

	// Token: 0x04002479 RID: 9337
	[Token(Token = "0x4002479")]
	private const int MAXIMUM_ROW_LIMITATION = 10;

	// Token: 0x0400247A RID: 9338
	[Token(Token = "0x400247A")]
	private const float MOVE_DURATION = 0.6f;

	// Token: 0x0400247B RID: 9339
	[Token(Token = "0x400247B")]
	private const float FADE_IN_DURATION = 0.1f;

	// Token: 0x0400247C RID: 9340
	[Token(Token = "0x400247C")]
	private const float FADE_OUT_DURATION = 0.1f;
}
