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

// Token: 0x02000275 RID: 629
[Token(Token = "0x2000275")]
public class UIHistory : GameCanvasBase
{
	// Token: 0x06001764 RID: 5988 RVA: 0x000352A0 File Offset: 0x000334A0
	[Token(Token = "0x6001764")]
	[Address(RVA = "0x19E5FC0", Offset = "0x19E4FC0", VA = "0x1819E5FC0", Slot = "11")]
	public override void Init()
	{
		UINavigator navigator2;
		UIHandlerBase[] array2;
		UILabelHandler uilabelHandler4;
		for (;;)
		{
			UILabelHandler uilabelHandler = this.confirmHandler;
			Action<UIHandlerBase> action = new Action(this.OnHandlerSelected);
			uilabelHandler.onSelectedHandler = action;
			UILabelHandler uilabelHandler2 = this.confirmHandler;
			Action<UIHandlerBase> action2 = new Action(this.OnHandlerDeselected);
			uilabelHandler2.onDeselectedHandler = action2;
			UINavigator navigator = this.navigator;
			UIHandlerBase[] array = new UIHandlerBase[1];
			UILabelHandler uilabelHandler3 = this.confirmHandler;
			if (uilabelHandler3 == 0 || array != 0)
			{
				array[0] = uilabelHandler3;
				navigator.BindPointerEnterEvent(array);
				navigator2 = this.navigator;
				array2 = new UIHandlerBase[1];
				uilabelHandler4 = this.confirmHandler;
				if (uilabelHandler4 == 0 || array2 != 0)
				{
					break;
				}
			}
		}
		array2[0] = uilabelHandler4;
		navigator2.BindPointerExitEvent(array2);
		int num;
		UIHistory.<Tick>d__35 <Tick>d__ = new UIHistory.<Tick>d__35(num);
		num = 0;
		<Tick>d__.<>4__this = this;
		CoroutineHandle coroutineHandle = MECExtensionMethods1.RunCoroutine(<Tick>d__);
		this.processorPlayingTime = coroutineHandle;
		this.g_iSwitchStageNumber = (int)((ulong)4294967295L);
	}

	// Token: 0x06001765 RID: 5989 RVA: 0x0003538C File Offset: 0x0003358C
	[Token(Token = "0x6001765")]
	[Address(RVA = "0x19E5B60", Offset = "0x19E4B60", VA = "0x1819E5B60")]
	public void BossRushSettlement(int iSwitchStageNumber)
	{
		this.g_iSwitchStageNumber = iSwitchStageNumber;
		this.g_bSettlement = true;
		int num = 0;
		this.g_fSettlementTime = 1.8f;
		GameObject gameObject = this.confirmHandler.gameObject;
		int num2 = 0;
		gameObject.SetActive(num2 != 0);
		this.navigationEffect.Hide();
		this.g_fbossRushAlpha = 1f;
		this.g_fClearedTimeSpeed = (float)num;
	}

	// Token: 0x06001766 RID: 5990 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001766")]
	[Address(RVA = "0x19E4F40", Offset = "0x19E3F40", VA = "0x1819E4F40", Slot = "12")]
	protected override void Appear(Action completeHandler)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001767 RID: 5991 RVA: 0x000353EC File Offset: 0x000335EC
	[Token(Token = "0x6001767")]
	[Address(RVA = "0x19E5B50", Offset = "0x19E4B50", VA = "0x1819E5B50")]
	protected void BaseAppear(Action completeHandler)
	{
		base.Appear(completeHandler);
	}

	// Token: 0x06001768 RID: 5992 RVA: 0x00035400 File Offset: 0x00033600
	[Token(Token = "0x6001768")]
	[Address(RVA = "0x19E5FB0", Offset = "0x19E4FB0", VA = "0x1819E5FB0", Slot = "13")]
	protected override void Hide(Action completeHandler)
	{
		this.g_bAppear = false;
		base.Hide(completeHandler);
	}

	// Token: 0x06001769 RID: 5993 RVA: 0x0003541C File Offset: 0x0003361C
	[Token(Token = "0x6001769")]
	[Address(RVA = "0x19E6450", Offset = "0x19E5450", VA = "0x1819E6450", Slot = "18")]
	public override void Move(Direction2D direction)
	{
		if (!this.g_bSettlement)
		{
			UINavigator navigator = this.navigator;
			UILabelHandler uilabelHandler = this.confirmHandler;
			navigator.SetDefaultHandler(uilabelHandler);
			return;
		}
	}

	// Token: 0x0600176A RID: 5994 RVA: 0x00035450 File Offset: 0x00033650
	[Token(Token = "0x600176A")]
	[Address(RVA = "0x19E6560", Offset = "0x19E5560", VA = "0x1819E6560")]
	protected void OnHandlerSelected(UIHandlerBase handler)
	{
		this.navigationEffect.Appear();
		Game.PlayHandlerSE(UIHandlerSFX.Navigation);
	}

	// Token: 0x0600176B RID: 5995 RVA: 0x00035474 File Offset: 0x00033674
	[Token(Token = "0x600176B")]
	[Address(RVA = "0x94CE70", Offset = "0x94BE70", VA = "0x18094CE70")]
	protected void OnHandlerDeselected(UIHandlerBase handler)
	{
		this.navigationEffect.Hide();
	}

	// Token: 0x0600176C RID: 5996 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600176C")]
	[Address(RVA = "0x19E6640", Offset = "0x19E5640", VA = "0x1819E6640", Slot = "21")]
	public override void Submit()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600176D RID: 5997 RVA: 0x00035494 File Offset: 0x00033694
	[Token(Token = "0x600176D")]
	[Address(RVA = "0x19E5BE0", Offset = "0x19E4BE0", VA = "0x1819E5BE0", Slot = "23")]
	public override void Cancel()
	{
		if (!this.g_bSettlement && this.g_iSwitchStageNumber < 0)
		{
			base.Cancel();
			return;
		}
	}

	// Token: 0x0600176E RID: 5998 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600176E")]
	[Address(RVA = "0x19E5E50", Offset = "0x19E4E50", VA = "0x1819E5E50")]
	protected string GetPlayingTimeValue()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600176F RID: 5999 RVA: 0x000354BC File Offset: 0x000336BC
	[Token(Token = "0x600176F")]
	[Address(RVA = "0x19E5DF0", Offset = "0x19E4DF0", VA = "0x1819E5DF0")]
	private string GetNumberValue(int value)
	{
		return string.Format("{0:N0}", "{0:N0}");
	}

	// Token: 0x06001770 RID: 6000 RVA: 0x000354D8 File Offset: 0x000336D8
	[Token(Token = "0x6001770")]
	[Address(RVA = "0x19E6250", Offset = "0x19E5250", VA = "0x1819E6250", Slot = "25")]
	public override void Localize(LocalizationData data)
	{
		Text text = this.title;
		string text2 = data.systemText.GetText(340);
		text.text = text2;
		GameFontPack fontPack = data.fontPack;
		Text text3 = this.title;
		Font light = fontPack.light;
		text3.font = light;
		UIHistoryHandler[] array = this.topHandlers;
		int num = 0;
		if (num < array.Length)
		{
			UIHistoryHandler uihistoryHandler = array[num];
			GameTextData systemText = data.systemText;
			Text label = uihistoryHandler.label;
			string text4 = systemText.GetText(341);
			label.text = text4;
			GameFontPack fontPack2 = data.fontPack;
			Text label2 = uihistoryHandler.label;
			Font regular = fontPack2.regular;
			label2.font = regular;
			GameFontPack fontPack3 = data.fontPack;
			Text content = uihistoryHandler.content;
			Font light2 = fontPack3.light;
			content.font = light2;
			UIHistoryHandler[] array2 = this.topHandlers;
			num++;
		}
		GameTextData systemText2 = data.systemText;
		UILabelHandler uilabelHandler = this.confirmHandler;
		string text5 = systemText2.GetText(16);
		uilabelHandler.SetLabel(text5);
		GameFontPack fontPack4 = data.fontPack;
		UILabelHandler uilabelHandler2 = this.confirmHandler;
		Font medium = fontPack4.medium;
		uilabelHandler2.SetFont(medium);
		UINavigationEffect uinavigationEffect = this.navigationEffect;
		UILabelHandler uilabelHandler3 = this.confirmHandler;
		uinavigationEffect.UpdateArrowPos(uilabelHandler3);
	}

	// Token: 0x06001771 RID: 6001 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001771")]
	[Address(RVA = "0x19E6810", Offset = "0x19E5810", VA = "0x1819E6810")]
	protected IEnumerator<float> Tick()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001772 RID: 6002 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001772")]
	[Address(RVA = "0x19E65D0", Offset = "0x19E55D0", VA = "0x1819E65D0", Slot = "26")]
	protected virtual IEnumerator<float> Settlement()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001773 RID: 6003 RVA: 0x00035628 File Offset: 0x00033828
	[Token(Token = "0x6001773")]
	[Address(RVA = "0x19E6490", Offset = "0x19E5490", VA = "0x1819E6490")]
	private void OnDisable()
	{
		CoroutineHandle[] array = new CoroutineHandle[2];
		int length = array.Length;
		CoroutineHandle coroutineHandle = this.processorPlayingTime;
		array[0] = coroutineHandle;
		CoroutineHandle coroutineHandle2 = this.processorSettlement;
		array[0] = coroutineHandle2;
		int num = Timing.KillCoroutines(array);
	}

	// Token: 0x06001774 RID: 6004 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001774")]
	[Address(RVA = "0x19E5C80", Offset = "0x19E4C80", VA = "0x1819E5C80")]
	protected string GetBossRushBestTime(float fBossRushBestClearedTime)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001775 RID: 6005 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001775")]
	[Address(RVA = "0x19E5C00", Offset = "0x19E4C00", VA = "0x1819E5C00")]
	protected string GetBossRushBestDeadCount(float fBossRushBestDeadCount)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001776 RID: 6006 RVA: 0x00035670 File Offset: 0x00033870
	[Token(Token = "0x6001776")]
	[Address(RVA = "0x19E6880", Offset = "0x19E5880", VA = "0x1819E6880")]
	public UIHistory()
	{
	}

	// Token: 0x040022DC RID: 8924
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x40022DC")]
	[SerializeField]
	protected Text title;

	// Token: 0x040022DD RID: 8925
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x40022DD")]
	[SerializeField]
	protected UIHistoryHandler[] topHandlers;

	// Token: 0x040022DE RID: 8926
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x40022DE")]
	[SerializeField]
	protected UILabelHandler confirmHandler;

	// Token: 0x040022DF RID: 8927
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x40022DF")]
	[SerializeField]
	protected UINavigationEffect navigationEffect;

	// Token: 0x040022E0 RID: 8928
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x40022E0")]
	[SerializeField]
	protected Image submissionEffect;

	// Token: 0x040022E1 RID: 8929
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x40022E1")]
	protected CoroutineHandle processorPlayingTime;

	// Token: 0x040022E2 RID: 8930
	[FieldOffset(Offset = "0x84")]
	[Token(Token = "0x40022E2")]
	protected CoroutineHandle processorSettlement;

	// Token: 0x040022E3 RID: 8931
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x40022E3")]
	protected bool g_bAppear;

	// Token: 0x040022E4 RID: 8932
	[FieldOffset(Offset = "0x89")]
	[Token(Token = "0x40022E4")]
	protected bool g_bSettlement;

	// Token: 0x040022E5 RID: 8933
	[FieldOffset(Offset = "0x8C")]
	[Token(Token = "0x40022E5")]
	protected float g_fSettlementTime;

	// Token: 0x040022E6 RID: 8934
	[FieldOffset(Offset = "0x90")]
	[Token(Token = "0x40022E6")]
	protected int g_iStep;

	// Token: 0x040022E7 RID: 8935
	[FieldOffset(Offset = "0x94")]
	[Token(Token = "0x40022E7")]
	protected float g_fbossRushBestClearedTime;

	// Token: 0x040022E8 RID: 8936
	[FieldOffset(Offset = "0x98")]
	[Token(Token = "0x40022E8")]
	protected float g_fbossRushNewClearedTime;

	// Token: 0x040022E9 RID: 8937
	[FieldOffset(Offset = "0x9C")]
	[Token(Token = "0x40022E9")]
	protected float g_fbossRushBestDeadCount;

	// Token: 0x040022EA RID: 8938
	[FieldOffset(Offset = "0xA0")]
	[Token(Token = "0x40022EA")]
	protected float g_fbossRushNewDeadCount;

	// Token: 0x040022EB RID: 8939
	[FieldOffset(Offset = "0xA4")]
	[Token(Token = "0x40022EB")]
	protected float g_fbossRushAlpha = 1f;

	// Token: 0x040022EC RID: 8940
	[FieldOffset(Offset = "0xA8")]
	[Token(Token = "0x40022EC")]
	protected float g_fbossRushCos;

	// Token: 0x040022ED RID: 8941
	[FieldOffset(Offset = "0xAC")]
	[Token(Token = "0x40022ED")]
	protected float g_fClearedTimeSpeed;

	// Token: 0x040022EE RID: 8942
	[FieldOffset(Offset = "0xB0")]
	[Token(Token = "0x40022EE")]
	protected float g_fDeadCountSpeed;

	// Token: 0x040022EF RID: 8943
	[FieldOffset(Offset = "0xB4")]
	[Token(Token = "0x40022EF")]
	protected int g_iSwitchStageNumber = (int)((ulong)4294967295L);

	// Token: 0x040022F0 RID: 8944
	[FieldOffset(Offset = "0xB8")]
	[Token(Token = "0x40022F0")]
	protected float g_fSEScoreBlankVal;

	// Token: 0x040022F1 RID: 8945
	[Token(Token = "0x40022F1")]
	protected const float g_fSEScoreBlank = 0.09f;
}
