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

// Token: 0x0200026A RID: 618
[Token(Token = "0x200026A")]
public class UIBattleSelectHandler : UIHandlerBase
{
	// Token: 0x170000DD RID: 221
	// (get) Token: 0x0600170F RID: 5903 RVA: 0x000340C0 File Offset: 0x000322C0
	[Token(Token = "0x170000DD")]
	public bool HasUnlocked
	{
		[Token(Token = "0x600170F")]
		[Address(RVA = "0xB948C0", Offset = "0xB938C0", VA = "0x180B948C0")]
		get
		{
			return this.hasUnlocked;
		}
	}

	// Token: 0x170000DE RID: 222
	// (get) Token: 0x06001710 RID: 5904 RVA: 0x000340D4 File Offset: 0x000322D4
	[Token(Token = "0x170000DE")]
	public SaveSystem.ScriptType BossRushFlag
	{
		[Token(Token = "0x6001710")]
		[Address(RVA = "0x4791C0", Offset = "0x4781C0", VA = "0x1804791C0")]
		get
		{
			return this.bossRushFlag;
		}
	}

	// Token: 0x170000DF RID: 223
	// (get) Token: 0x06001711 RID: 5905 RVA: 0x000340E8 File Offset: 0x000322E8
	[Token(Token = "0x170000DF")]
	private StageFlagData Flags
	{
		[Token(Token = "0x6001711")]
		[Address(RVA = "0x19D5C80", Offset = "0x19D4C80", VA = "0x1819D5C80")]
		get
		{
			return Game.GameSave.flags;
		}
	}

	// Token: 0x06001712 RID: 5906 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001712")]
	[Address(RVA = "0x29E8B0", Offset = "0x29D8B0", VA = "0x18029E8B0")]
	public void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001713 RID: 5907 RVA: 0x00034108 File Offset: 0x00032308
	[Token(Token = "0x6001713")]
	[Address(RVA = "0x19D4420", Offset = "0x19D3420", VA = "0x1819D4420", Slot = "8")]
	public override void OnSelect()
	{
		Action<UIHandlerBase> onSelectedHandler = this.onSelectedHandler;
		if (onSelectedHandler != 0)
		{
			onSelectedHandler(this);
		}
		if (this.hasUnlocked)
		{
			TweenerCore<Vector3, Vector3, VectorOptions> tweenerCore = ShortcutExtensions.DOScale(this.rectTransform, 1.1f, 0.13f).SetEase((Ease)((uint)3)).SetUpdate(true)
				.Play<TweenerCore<Vector3, Vector3, VectorOptions>>();
			return;
		}
	}

	// Token: 0x06001714 RID: 5908 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001714")]
	[Address(RVA = "0x19D4360", Offset = "0x19D3360", VA = "0x1819D4360", Slot = "9")]
	public override void OnDeselect()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001715 RID: 5909 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001715")]
	[Address(RVA = "0x19D5730", Offset = "0x19D4730", VA = "0x1819D5730")]
	public bool UpdateUnlockState()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001716 RID: 5910 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001716")]
	[Address(RVA = "0x19D44F0", Offset = "0x19D34F0", VA = "0x1819D44F0")]
	private void SetupBattleTime()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001717 RID: 5911 RVA: 0x0003415C File Offset: 0x0003235C
	[Token(Token = "0x6001717")]
	[Address(RVA = "0x19D4250", Offset = "0x19D3250", VA = "0x1819D4250")]
	private string GetTimeFormat(float battleTime)
	{
		int num = Mathf.FloorToInt(battleTime);
		return string.Format("{0:00}:{1:00.00}", num, num);
	}

	// Token: 0x06001718 RID: 5912 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001718")]
	[Address(RVA = "0x19D3EE0", Offset = "0x19D2EE0", VA = "0x1819D3EE0")]
	public string GetBattleName()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001719 RID: 5913 RVA: 0x0003417C File Offset: 0x0003237C
	[Token(Token = "0x6001719")]
	[Address(RVA = "0x41ED30", Offset = "0x41DD30", VA = "0x18041ED30")]
	public UIBattleSelectHandler()
	{
	}

	// Token: 0x0600171A RID: 5914 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600171A")]
	[Address(RVA = "0x19D54A0", Offset = "0x19D44A0", VA = "0x1819D54A0")]
	[CompilerGenerated]
	private void <UpdateUnlockState>g__UpdateImage01|16_0()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600171B RID: 5915 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600171B")]
	[Address(RVA = "0x19D55F0", Offset = "0x19D45F0", VA = "0x1819D55F0")]
	[CompilerGenerated]
	private void <UpdateUnlockState>g__UpdateImage02|16_1()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x040022AC RID: 8876
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x40022AC")]
	[SerializeField]
	private bool hasUnlocked;

	// Token: 0x040022AD RID: 8877
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x40022AD")]
	[SerializeField]
	private Image icon;

	// Token: 0x040022AE RID: 8878
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x40022AE")]
	[SerializeField]
	private Text battleName;

	// Token: 0x040022AF RID: 8879
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x40022AF")]
	[SerializeField]
	private Text battleTime;

	// Token: 0x040022B0 RID: 8880
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x40022B0")]
	[SerializeField]
	private Text DeadCount;

	// Token: 0x040022B1 RID: 8881
	[FieldOffset(Offset = "0x90")]
	[Token(Token = "0x40022B1")]
	[SerializeField]
	private Image lockImage;

	// Token: 0x040022B2 RID: 8882
	[FieldOffset(Offset = "0x98")]
	[Token(Token = "0x40022B2")]
	[SerializeField]
	private SaveSystem.ScriptType bossRushFlag;
}
