using System;
using Cpp2IlInjected;
using DG.Tweening;
using DG.Tweening.Core;
using DG.Tweening.Plugins.Options;
using MarsSDK;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x020002A6 RID: 678
[Token(Token = "0x20002A6")]
[RequireComponent(typeof(RectTransform), typeof(CanvasGroup))]
public class UIGameSavePage : MonoBehaviour
{
	// Token: 0x06001961 RID: 6497 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001961")]
	[Address(RVA = "0x19DE840", Offset = "0x19DD840", VA = "0x1819DE840")]
	public void Init(int pageIndex, UIHandlerBase backHandler)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001962 RID: 6498 RVA: 0x0003E0CC File Offset: 0x0003C2CC
	[Token(Token = "0x6001962")]
	[Address(RVA = "0x19DF010", Offset = "0x19DE010", VA = "0x1819DF010")]
	public void SetupNavigation(UINavigator navigator)
	{
		UIGameSaveHandler[] array = this.saveDataHandlers;
		navigator.BindPointerEnterEvent(array);
		UIGameSaveHandler[] array2 = this.saveDataHandlers;
		navigator.BindPointerExitEvent(array2);
		UIGameSaveDeleteHandler[] array3 = this.deleteHandlers;
		navigator.BindPointerEnterEvent(array3);
		UIGameSaveDeleteHandler[] array4 = this.deleteHandlers;
		navigator.BindPointerExitEvent(array4);
	}

	// Token: 0x06001963 RID: 6499 RVA: 0x0003E118 File Offset: 0x0003C318
	[Token(Token = "0x6001963")]
	[Address(RVA = "0x19DE630", Offset = "0x19DD630", VA = "0x1819DE630")]
	public void BindSaveDataSelectionEvents(Action<UIHandlerBase> onSelected, Action<UIHandlerBase> onDeselected)
	{
		UIGameSaveHandler[] array = this.saveDataHandlers;
		int num = 0;
		int length = array.Length;
		if (num < length)
		{
			UIGameSaveHandler uigameSaveHandler = array[num];
			uigameSaveHandler.onSelectedHandler = onSelected;
			uigameSaveHandler.onDeselectedHandler = onDeselected;
			num++;
		}
	}

	// Token: 0x06001964 RID: 6500 RVA: 0x0003E15C File Offset: 0x0003C35C
	[Token(Token = "0x6001964")]
	[Address(RVA = "0x19DE590", Offset = "0x19DD590", VA = "0x1819DE590")]
	public void BindDeleteSelectionEvents(Action<UIHandlerBase> onSelected, Action<UIHandlerBase> onDeselected)
	{
		UIGameSaveDeleteHandler[] array = this.deleteHandlers;
		int num = 0;
		int length = array.Length;
		if (num < length)
		{
			UIGameSaveDeleteHandler uigameSaveDeleteHandler = array[num];
			uigameSaveDeleteHandler.onSelectedHandler = onSelected;
			uigameSaveDeleteHandler.onDeselectedHandler = onDeselected;
			num++;
		}
	}

	// Token: 0x06001965 RID: 6501 RVA: 0x0003E1A0 File Offset: 0x0003C3A0
	[Token(Token = "0x6001965")]
	[Address(RVA = "0x19DEED0", Offset = "0x19DDED0", VA = "0x1819DEED0")]
	public void SetActive(UINavigator navigator, int selectedHandlerIndex, UIHandlerBase backHandler)
	{
		this.SetActive(navigator, backHandler);
		UIGameSaveHandler uigameSaveHandler = this.saveDataHandlers[selectedHandlerIndex];
		navigator.SetDefaultHandler(uigameSaveHandler);
		UIGameSaveDeleteHandler uigameSaveDeleteHandler = this.deleteHandlers[selectedHandlerIndex];
		this.lastDeleteHandler = uigameSaveDeleteHandler;
		throw new NullReferenceException();
	}

	// Token: 0x06001966 RID: 6502 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001966")]
	[Address(RVA = "0x19DED60", Offset = "0x19DDD60", VA = "0x1819DED60")]
	public void SetActive(UINavigator navigator, UIHandlerBase backHandler)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001967 RID: 6503 RVA: 0x0003E1E4 File Offset: 0x0003C3E4
	[Token(Token = "0x6001967")]
	[Address(RVA = "0x19DEF80", Offset = "0x19DDF80", VA = "0x1819DEF80")]
	public void SetInactive()
	{
		CanvasGroup canvasGroup = this.canvasGroup;
		int num = 0;
		canvasGroup.blocksRaycasts = num != 0;
		UIGameSaveDeleteHandler[] array = this.deleteHandlers;
		int num2 = 0;
		int length = array.Length;
		if (num2 < length)
		{
			Image icon = array[num2].icon;
			int num3 = 0;
			icon.enabled = num3 != 0;
			num2++;
		}
	}

	// Token: 0x06001968 RID: 6504 RVA: 0x0003E23C File Offset: 0x0003C43C
	[Token(Token = "0x6001968")]
	[Address(RVA = "0x19DF280", Offset = "0x19DE280", VA = "0x1819DF280")]
	public void UpdateRaycastTarget(bool enable)
	{
		this.canvasGroup.blocksRaycasts = enable;
	}

	// Token: 0x06001969 RID: 6505 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001969")]
	[Address(RVA = "0x19DE6D0", Offset = "0x19DD6D0", VA = "0x1819DE6D0")]
	public Tween GetPageFadeInTween(float duration)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600196A RID: 6506 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600196A")]
	[Address(RVA = "0x19DE6F0", Offset = "0x19DD6F0", VA = "0x1819DE6F0")]
	public Tween GetPageFadeOutTween(float duration)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600196B RID: 6507 RVA: 0x0003E25C File Offset: 0x0003C45C
	[Token(Token = "0x600196B")]
	[Address(RVA = "0x19DF260", Offset = "0x19DE260", VA = "0x1819DF260")]
	public void UpdatePageAlpha(float alpha)
	{
		this.canvasGroup.alpha = alpha;
	}

	// Token: 0x0600196C RID: 6508 RVA: 0x0003E27C File Offset: 0x0003C47C
	[Token(Token = "0x600196C")]
	[Address(RVA = "0x19DE3F0", Offset = "0x19DD3F0", VA = "0x1819DE3F0")]
	public void AppearDeleteHandler(int index)
	{
		if (this.lastDeleteHandler)
		{
			Image icon = this.lastDeleteHandler.icon;
			int num = 0;
			TweenerCore<Color, Color, ColorOptions> tweenerCore = DOTweenModuleUI.DOFade(icon, (float)num, 0.3f).SetEase((Ease)((uint)15)).Play<TweenerCore<Color, Color, ColorOptions>>();
		}
		UIGameSaveDeleteHandler uigameSaveDeleteHandler = this.deleteHandlers[index];
		this.lastDeleteHandler = uigameSaveDeleteHandler;
		TweenerCore<Color, Color, ColorOptions> tweenerCore2 = DOTweenModuleUI.DOFade(this.lastDeleteHandler.icon, 1f, 0.3f).SetEase((Ease)((uint)15)).Play<TweenerCore<Color, Color, ColorOptions>>();
	}

	// Token: 0x0600196D RID: 6509 RVA: 0x0003E304 File Offset: 0x0003C504
	[Token(Token = "0x600196D")]
	[Address(RVA = "0x19DE750", Offset = "0x19DD750", VA = "0x1819DE750")]
	public void HideDeleteHandler()
	{
		if (this.lastDeleteHandler)
		{
			Image icon = this.lastDeleteHandler.icon;
			int num = 0;
			TweenerCore<Color, Color, ColorOptions> tweenerCore = DOTweenModuleUI.DOFade(icon, (float)num, 0.3f).SetEase((Ease)((uint)15)).Play<TweenerCore<Color, Color, ColorOptions>>();
			this.lastDeleteHandler = (ulong)0L;
		}
	}

	// Token: 0x0600196E RID: 6510 RVA: 0x0003E358 File Offset: 0x0003C558
	[Token(Token = "0x600196E")]
	[Address(RVA = "0x19DECD0", Offset = "0x19DDCD0", VA = "0x1819DECD0")]
	private void ProcessHandlerAlpha(UIGameSaveDeleteHandler handler, float alpha)
	{
		TweenerCore<Color, Color, ColorOptions> tweenerCore = DOTweenModuleUI.DOFade(handler.icon, alpha, 0.3f).SetEase((Ease)((uint)15)).Play<TweenerCore<Color, Color, ColorOptions>>();
	}

	// Token: 0x0600196F RID: 6511 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600196F")]
	[Address(RVA = "0x19DF080", Offset = "0x19DE080", VA = "0x1819DF080")]
	public void UpdateContent(LocalizationData data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001970 RID: 6512 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001970")]
	[Address(RVA = "0x19DEBB0", Offset = "0x19DDBB0", VA = "0x1819DEBB0")]
	public void Localize(LocalizationData data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001971 RID: 6513 RVA: 0x0003E38C File Offset: 0x0003C58C
	[Token(Token = "0x6001971")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public UIGameSavePage()
	{
	}

	// Token: 0x040023E1 RID: 9185
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x40023E1")]
	[SerializeField]
	private int pageIndex;

	// Token: 0x040023E2 RID: 9186
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x40023E2")]
	[SerializeField]
	private CanvasGroup canvasGroup;

	// Token: 0x040023E3 RID: 9187
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x40023E3")]
	[SerializeField]
	private UIGameSaveHandler[] saveDataHandlers;

	// Token: 0x040023E4 RID: 9188
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x40023E4")]
	[SerializeField]
	private UIGameSaveDeleteHandler[] deleteHandlers;

	// Token: 0x040023E5 RID: 9189
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x40023E5")]
	private UIGameSaveDeleteHandler lastDeleteHandler;
}
