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

// Token: 0x020002D0 RID: 720
[Token(Token = "0x20002D0")]
public class UIGameSaveHandler : UIHandlerBase
{
	// Token: 0x06001B00 RID: 6912 RVA: 0x00041DA4 File Offset: 0x0003FFA4
	[Token(Token = "0x6001B00")]
	[Address(RVA = "0x19DE360", Offset = "0x19DD360", VA = "0x1819DE360")]
	public void UpdateNumber(int index)
	{
		Text text = this.number;
		string text2 = string.Format("{0}.", "{0}.");
		text.text = text2;
	}

	// Token: 0x06001B01 RID: 6913 RVA: 0x00041DD8 File Offset: 0x0003FFD8
	[Token(Token = "0x6001B01")]
	[Address(RVA = "0x19DE100", Offset = "0x19DD100", VA = "0x1819DE100", Slot = "8")]
	public override void OnSelect()
	{
		Action<UIHandlerBase> onSelectedHandler = this.onSelectedHandler;
		if (onSelectedHandler != 0)
		{
			onSelectedHandler(this);
			return;
		}
	}

	// Token: 0x06001B02 RID: 6914 RVA: 0x00041DF8 File Offset: 0x0003FFF8
	[Token(Token = "0x6001B02")]
	[Address(RVA = "0x19DE0B0", Offset = "0x19DD0B0", VA = "0x1819DE0B0", Slot = "9")]
	public override void OnDeselect()
	{
		Action<UIHandlerBase> onDeselectedHandler = this.onDeselectedHandler;
		if (onDeselectedHandler != 0)
		{
			onDeselectedHandler(this);
			return;
		}
	}

	// Token: 0x06001B03 RID: 6915 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001B03")]
	[Address(RVA = "0x19DE150", Offset = "0x19DD150", VA = "0x1819DE150")]
	public void Setup(GameSavePreviewData previewData, LocalizationData data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001B04 RID: 6916 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001B04")]
	[Address(RVA = "0x19DDDD0", Offset = "0x19DCDD0", VA = "0x1819DDDD0")]
	public void Localize(GameSavePreviewData previewData, LocalizationData data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001B05 RID: 6917 RVA: 0x00041E18 File Offset: 0x00040018
	[Token(Token = "0x6001B05")]
	[Address(RVA = "0x19DDCB0", Offset = "0x19DCCB0", VA = "0x1819DDCB0")]
	private string GetDifficultyText(GameSavePreviewData previewData, GameTextData languageData)
	{
		string text;
		string text2;
		int gameCleared;
		for (;;)
		{
			GameDifficulty gameDifficulty = previewData.difficulty;
			if (previewData != 0 && previewData != 0)
			{
				if (gameDifficulty != GameDifficulty.Advanced)
				{
				}
				uint num;
				text = languageData.GetText((int)num);
				if (previewData.bossRushCleared)
				{
					break;
				}
			}
			else
			{
				uint num2;
				text2 = languageData.GetText((int)num2);
				gameCleared = previewData.gameCleared;
				if (gameCleared > 0)
				{
					goto Block_3;
				}
			}
		}
		return "☆ " + text;
		Block_3:
		return string.Format("☆{0} {1}", gameCleared, text2);
	}

	// Token: 0x06001B06 RID: 6918 RVA: 0x00041E80 File Offset: 0x00040080
	[Token(Token = "0x6001B06")]
	[Address(RVA = "0x19DE2C0", Offset = "0x19DD2C0", VA = "0x1819DE2C0")]
	private void UpdateFont(GameFontPack fontPack)
	{
		Text text = this.number;
		Font regular = fontPack.regular;
		text.font = regular;
		Text text2 = this.location;
		Font regular2 = fontPack.regular;
		text2.font = regular2;
		Text text3 = this.difficulty;
		Font light = fontPack.light;
		text3.font = light;
		Text text4 = this.timeStamp;
		Font light2 = fontPack.light;
		text4.font = light2;
		Text text5 = this.noDataLabel;
		Font regular3 = fontPack.regular;
		text5.font = regular3;
	}

	// Token: 0x06001B07 RID: 6919 RVA: 0x00041F08 File Offset: 0x00040108
	[Token(Token = "0x6001B07")]
	[Address(RVA = "0x41ED30", Offset = "0x41DD30", VA = "0x18041ED30")]
	public UIGameSaveHandler()
	{
	}

	// Token: 0x04002514 RID: 9492
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x4002514")]
	[SerializeField]
	private Text number;

	// Token: 0x04002515 RID: 9493
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4002515")]
	[SerializeField]
	private Image image;

	// Token: 0x04002516 RID: 9494
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x4002516")]
	[SerializeField]
	private Text location;

	// Token: 0x04002517 RID: 9495
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4002517")]
	[SerializeField]
	private Text difficulty;

	// Token: 0x04002518 RID: 9496
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x4002518")]
	[SerializeField]
	private Text timeStamp;

	// Token: 0x04002519 RID: 9497
	[FieldOffset(Offset = "0x90")]
	[Token(Token = "0x4002519")]
	[SerializeField]
	private Text noDataLabel;
}
