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

// Token: 0x02000285 RID: 645
[Token(Token = "0x2000285")]
public class UIGameSaveHandler : UIHandlerBase
{
	// Token: 0x060018D4 RID: 6356 RVA: 0x0003C42C File Offset: 0x0003A62C
	[Token(Token = "0x60018D4")]
	[Address(RVA = "0x763080", Offset = "0x761E80", VA = "0x180763080")]
	public void UpdateNumber(int index)
	{
		Text text = this.number;
		string text2 = string.Format("{0}.", "{0}.");
		text.text = text2;
	}

	// Token: 0x060018D5 RID: 6357 RVA: 0x0003C460 File Offset: 0x0003A660
	[Token(Token = "0x60018D5")]
	[Address(RVA = "0x762E20", Offset = "0x761C20", VA = "0x180762E20", Slot = "8")]
	public override void OnSelect()
	{
		Action<UIHandlerBase> onSelectedHandler = this.onSelectedHandler;
		if (onSelectedHandler != 0)
		{
			onSelectedHandler(this);
			return;
		}
	}

	// Token: 0x060018D6 RID: 6358 RVA: 0x0003C480 File Offset: 0x0003A680
	[Token(Token = "0x60018D6")]
	[Address(RVA = "0x762DD0", Offset = "0x761BD0", VA = "0x180762DD0", Slot = "9")]
	public override void OnDeselect()
	{
		Action<UIHandlerBase> onDeselectedHandler = this.onDeselectedHandler;
		if (onDeselectedHandler != 0)
		{
			onDeselectedHandler(this);
			return;
		}
	}

	// Token: 0x060018D7 RID: 6359 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60018D7")]
	[Address(RVA = "0x762E70", Offset = "0x761C70", VA = "0x180762E70")]
	public void Setup(GameSavePreviewData previewData, LocalizationData data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060018D8 RID: 6360 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60018D8")]
	[Address(RVA = "0x762B90", Offset = "0x761990", VA = "0x180762B90")]
	public void Localize(GameSavePreviewData previewData, LocalizationData data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060018D9 RID: 6361 RVA: 0x0003C4A0 File Offset: 0x0003A6A0
	[Token(Token = "0x60018D9")]
	[Address(RVA = "0x762AD0", Offset = "0x7618D0", VA = "0x180762AD0")]
	private string GetDifficultyText(GameSavePreviewData previewData, GameTextData languageData)
	{
		string text;
		int gameCleared;
		do
		{
			if (previewData.difficulty == GameDifficulty.Advanced)
			{
			}
			text = languageData.GetText(29);
			gameCleared = previewData.gameCleared;
		}
		while (gameCleared <= 0);
		return string.Format("☆{0} {1}", gameCleared, text);
	}

	// Token: 0x060018DA RID: 6362 RVA: 0x0003C4DC File Offset: 0x0003A6DC
	[Token(Token = "0x60018DA")]
	[Address(RVA = "0x762FE0", Offset = "0x761DE0", VA = "0x180762FE0")]
	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: 0x060018DB RID: 6363 RVA: 0x0003C564 File Offset: 0x0003A764
	[Token(Token = "0x60018DB")]
	[Address(RVA = "0x3FBF80", Offset = "0x3FAD80", VA = "0x1803FBF80")]
	public UIGameSaveHandler()
	{
	}

	// Token: 0x040022C1 RID: 8897
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x40022C1")]
	[SerializeField]
	private Text number;

	// Token: 0x040022C2 RID: 8898
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x40022C2")]
	[SerializeField]
	private Image image;

	// Token: 0x040022C3 RID: 8899
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x40022C3")]
	[SerializeField]
	private Text location;

	// Token: 0x040022C4 RID: 8900
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x40022C4")]
	[SerializeField]
	private Text difficulty;

	// Token: 0x040022C5 RID: 8901
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x40022C5")]
	[SerializeField]
	private Text timeStamp;

	// Token: 0x040022C6 RID: 8902
	[FieldOffset(Offset = "0x90")]
	[Token(Token = "0x40022C6")]
	[SerializeField]
	private Text noDataLabel;
}
