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

// Token: 0x02000311 RID: 785
[Token(Token = "0x2000311")]
public class UIGameTip : GameCanvasBase
{
	// Token: 0x06001CB8 RID: 7352 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CB8")]
	[Address(RVA = "0x19E3600", Offset = "0x19E2600", VA = "0x1819E3600", Slot = "11")]
	public override void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CB9 RID: 7353 RVA: 0x00044E58 File Offset: 0x00043058
	[Token(Token = "0x6001CB9")]
	[Address(RVA = "0x19E3420", Offset = "0x19E2420", VA = "0x1819E3420", Slot = "12")]
	protected override void Appear(Action completeHandler)
	{
		UINavigator navigator = this.navigator;
		UILabelHandler uilabelHandler = this.submissionHandler;
		navigator.SetDefaultHandler(uilabelHandler);
		GameObject gameObject = this.submissionEffect.gameObject;
		int num = 0;
		gameObject.SetActive(num != 0);
		base.Appear(completeHandler);
	}

	// Token: 0x06001CBA RID: 7354 RVA: 0x00044E9C File Offset: 0x0004309C
	[Token(Token = "0x6001CBA")]
	[Address(RVA = "0x19E4A80", Offset = "0x19E3A80", VA = "0x1819E4A80")]
	public void UpdateStyle(GameTipStyle style)
	{
		GameTextDataAdvance gameTextDataAdvance = this.textData;
		this.UpdateStyle(style, gameTextDataAdvance);
	}

	// Token: 0x06001CBB RID: 7355 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CBB")]
	[Address(RVA = "0x19E4A90", Offset = "0x19E3A90", VA = "0x1819E4A90")]
	public void UpdateStyle(GameTipStyle style, GameTextDataAdvance data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CBC RID: 7356 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CBC")]
	[Address(RVA = "0x19E4C30", Offset = "0x19E3C30", VA = "0x1819E4C30")]
	private void UpdateText(string[] data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CBD RID: 7357 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CBD")]
	[Address(RVA = "0x19E48B0", Offset = "0x19E38B0", VA = "0x1819E48B0")]
	private void UpdateInputIcons(GameTipStyle style)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CBE RID: 7358 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CBE")]
	[Address(RVA = "0x19E3B90", Offset = "0x19E2B90", VA = "0x1819E3B90")]
	private void ResetActiveInputIconRoot()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CBF RID: 7359 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CBF")]
	[Address(RVA = "0x19E3560", Offset = "0x19E2560", VA = "0x1819E3560")]
	private UIInputIcon[] GetInputIcons(GameTipStyle style)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CC0 RID: 7360 RVA: 0x00044EB8 File Offset: 0x000430B8
	[Token(Token = "0x6001CC0")]
	[Address(RVA = "0x19E4310", Offset = "0x19E3310", VA = "0x1819E4310")]
	private void UpdateInputIconRoot(UIInputIcon[] collection)
	{
		if (collection != 0)
		{
			Transform parent = collection[0].transform.parent;
			this.activeInputKeyRoot = parent;
		}
	}

	// Token: 0x06001CC1 RID: 7361 RVA: 0x00044EE8 File Offset: 0x000430E8
	[Token(Token = "0x6001CC1")]
	[Address(RVA = "0x19E3AA0", Offset = "0x19E2AA0", VA = "0x1819E3AA0", Slot = "18")]
	public override void Move(Direction2D direction)
	{
		UINavigator navigator = this.navigator;
		UILabelHandler uilabelHandler = this.submissionHandler;
		navigator.SetDefaultHandler(uilabelHandler);
	}

	// Token: 0x06001CC2 RID: 7362 RVA: 0x00044F10 File Offset: 0x00043110
	[Token(Token = "0x6001CC2")]
	[Address(RVA = "0x19E3B20", Offset = "0x19E2B20", VA = "0x1819E3B20")]
	private void OnHandlerSelected(UIHandlerBase handler)
	{
		this.navigationEffect.Appear();
		Game.PlayHandlerSE(UIHandlerSFX.Navigation);
	}

	// Token: 0x06001CC3 RID: 7363 RVA: 0x00044F34 File Offset: 0x00043134
	[Token(Token = "0x6001CC3")]
	[Address(RVA = "0x95F380", Offset = "0x95E380", VA = "0x18095F380")]
	private void OnHandlerDeselected(UIHandlerBase handler)
	{
		this.navigationEffect.Hide();
	}

	// Token: 0x06001CC4 RID: 7364 RVA: 0x00044F54 File Offset: 0x00043154
	[Token(Token = "0x6001CC4")]
	[Address(RVA = "0x19E3CB0", Offset = "0x19E2CB0", VA = "0x1819E3CB0", Slot = "21")]
	public override void Submit()
	{
		if (this.navigator.currentHandler)
		{
			base.Close();
			Game.PlayHandlerScaleEffect(this.navigator.currentHandler);
			this.submissionEffect.gameObject.SetActive(true);
			Game.PlayCanvasSE(UICanvasSFX.Close);
		}
	}

	// Token: 0x06001CC5 RID: 7365 RVA: 0x00044FA8 File Offset: 0x000431A8
	[Token(Token = "0x6001CC5")]
	[Address(RVA = "0x19E3AD0", Offset = "0x19E2AD0", VA = "0x1819E3AD0", Slot = "14")]
	protected override void OnCloseCompleted()
	{
		this.contentHandler.pooledElements.ReturnAll();
	}

	// Token: 0x06001CC6 RID: 7366 RVA: 0x00044FCC File Offset: 0x000431CC
	[Token(Token = "0x6001CC6")]
	[Address(RVA = "0x19E39E0", Offset = "0x19E29E0", VA = "0x1819E39E0", Slot = "25")]
	public override void Localize(LocalizationData data)
	{
		GameTextData systemText = data.systemText;
		GameTextDataAdvance gameTextDataAdvance = this.textData;
		GameLanguage language = systemText.language;
		GameTextDataAdvance gameTextDataAdvance2 = gameTextDataAdvance.UpdateLanguage(language);
		GameFontPack fontPack = data.fontPack;
		GameTextData systemText2 = data.systemText;
		this.UpdateFontPack(fontPack);
		UILabelHandler uilabelHandler = this.submissionHandler;
		string text = systemText2.GetText(13);
		uilabelHandler.SetLabel(text);
		UINavigationEffect uinavigationEffect = this.navigationEffect;
		UILabelHandler uilabelHandler2 = this.submissionHandler;
		uinavigationEffect.UpdateArrowPos(uilabelHandler2);
	}

	// Token: 0x06001CC7 RID: 7367 RVA: 0x0004504C File Offset: 0x0004324C
	[Token(Token = "0x6001CC7")]
	[Address(RVA = "0x19E3950", Offset = "0x19E2950", VA = "0x1819E3950")]
	public void Localize(GameTextData data, GameFontPack fontPack)
	{
		this.UpdateFontPack(fontPack);
		UILabelHandler uilabelHandler = this.submissionHandler;
		string text = data.GetText(13);
		uilabelHandler.SetLabel(text);
		UINavigationEffect uinavigationEffect = this.navigationEffect;
		UILabelHandler uilabelHandler2 = this.submissionHandler;
		uinavigationEffect.UpdateArrowPos(uilabelHandler2);
	}

	// Token: 0x06001CC8 RID: 7368 RVA: 0x00045094 File Offset: 0x00043294
	[Token(Token = "0x6001CC8")]
	[Address(RVA = "0x19E3EA0", Offset = "0x19E2EA0", VA = "0x1819E3EA0")]
	private void UpdateFontPack(GameFontPack fontPack)
	{
		Text text = this.title;
		Font light = fontPack.light;
		text.font = light;
		UIGameTipContentHandler uigameTipContentHandler = this.contentHandler;
		UIGameTipContentHandler.<>c__DisplayClass13_0 CS$<>8__locals1 = new UIGameTipContentHandler.<>c__DisplayClass13_0();
		CS$<>8__locals1.fontPack = fontPack;
		GameObjectPoolLimited<UIGameTipContentElement> pooledElements = uigameTipContentHandler.pooledElements;
		if (pooledElements == 0)
		{
			uigameTipContentHandler.Init();
		}
		Action<UIGameTipContentElement> action = delegate(UIGameTipContentElement element)
		{
			GameFontPack fontPack2 = CS$<>8__locals1.fontPack;
			element.SetFont(fontPack2);
		};
		pooledElements.ProcessSparePool(action);
		UILabelHandler uilabelHandler = this.submissionHandler;
		Font medium = fontPack.medium;
		uilabelHandler.SetFont(medium);
		UIInputIcon[] array = this.tutorialAttackAndJumpKeys;
		int num = 0;
		int length = array.Length;
		if (num < length)
		{
			array[num].SetFont(fontPack);
			num++;
		}
		UIInputIcon[] array2 = this.tutorialAimAndShootKeys;
		int length2 = array2.Length;
		if (num < length2)
		{
			array2[num].SetFont(fontPack);
			num++;
		}
		UIInputIcon[] array3 = this.tutorialDodgeKeys;
		int length3 = array3.Length;
		if (num < length3)
		{
			array3[num].SetFont(fontPack);
			num++;
		}
		UIInputIcon[] array4 = this.tutorialDashKeys;
		int length4 = array4.Length;
		if (num < length4)
		{
			array4[num].SetFont(fontPack);
			num++;
		}
		UIInputIcon[] array5 = this.tutorialItemKeys;
		int length5 = array5.Length;
		if (num < length5)
		{
			array5[num].SetFont(fontPack);
			num++;
		}
		UIInputIcon[] array6 = this.tutorialChantKeys;
		int length6 = array6.Length;
		if (num < length6)
		{
			array6[num].SetFont(fontPack);
			num++;
		}
		UIInputIcon[] array7 = this.tutorialMagicSelectionKeys;
		int length7 = array7.Length;
		if (num < length7)
		{
			array7[num].SetFont(fontPack);
			num++;
		}
		UIInputIcon[] array8 = this.tutorialCameraModeKeys;
		int length8 = array8.Length;
		if (num < length8)
		{
			array8[num].SetFont(fontPack);
			num++;
		}
		UIInputIcon[] array9 = this.tutorialUpgradeAndTrade;
		int length9 = array9.Length;
		if (num < length9)
		{
			array9[num].SetFont(fontPack);
			num++;
		}
	}

	// Token: 0x06001CC9 RID: 7369 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CC9")]
	[Address(RVA = "0x19E4370", Offset = "0x19E3370", VA = "0x1819E4370")]
	private void UpdateInputIconStyles(ControllerDevice device)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CCA RID: 7370 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CCA")]
	[Address(RVA = "0x19E3E20", Offset = "0x19E2E20", VA = "0x1819E3E20")]
	private void UpdateCursorPosition(UIHandlerBase handler)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CCB RID: 7371 RVA: 0x000452A4 File Offset: 0x000434A4
	[Token(Token = "0x6001CCB")]
	[Address(RVA = "0x19E3490", Offset = "0x19E2490", VA = "0x1819E3490")]
	public void Dispose()
	{
		Game.RemoveDeviceChangedHandler(new Action(this.UpdateInputIconStyles));
		this.navigator.UnbindHandlerMovedEvent();
		this.submissionHandler.Dispose();
	}

	// Token: 0x06001CCC RID: 7372 RVA: 0x000452E0 File Offset: 0x000434E0
	[Token(Token = "0x6001CCC")]
	[Address(RVA = "0x94D9C0", Offset = "0x94C9C0", VA = "0x18094D9C0")]
	public UIGameTip()
	{
	}

	// Token: 0x06001CCD RID: 7373 RVA: 0x000452F4 File Offset: 0x000434F4
	[Token(Token = "0x6001CCD")]
	[Address(RVA = "0x19E3DB0", Offset = "0x19E2DB0", VA = "0x1819E3DB0")]
	[CompilerGenerated]
	internal static void <UpdateFontPack>g__UpdateKeyFont|34_0(UIInputIcon[] source, GameFontPack fontPack)
	{
		int num = 0;
		int length = source.Length;
		if (num < length)
		{
			source[num].SetFont(fontPack);
			num++;
		}
	}

	// Token: 0x040026EE RID: 9966
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x40026EE")]
	[SerializeField]
	private Image curseIcon;

	// Token: 0x040026EF RID: 9967
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x40026EF")]
	[SerializeField]
	private Text title;

	// Token: 0x040026F0 RID: 9968
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x40026F0")]
	[SerializeField]
	private UIGameTipContentHandler contentHandler;

	// Token: 0x040026F1 RID: 9969
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x40026F1")]
	[SerializeField]
	private UIInputIcon[] tutorialAttackAndJumpKeys;

	// Token: 0x040026F2 RID: 9970
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x40026F2")]
	[SerializeField]
	private UIInputIcon[] tutorialAimAndShootKeys;

	// Token: 0x040026F3 RID: 9971
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x40026F3")]
	[SerializeField]
	private UIInputIcon[] tutorialDodgeKeys;

	// Token: 0x040026F4 RID: 9972
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x40026F4")]
	[SerializeField]
	private UIInputIcon[] tutorialDashKeys;

	// Token: 0x040026F5 RID: 9973
	[FieldOffset(Offset = "0x90")]
	[Token(Token = "0x40026F5")]
	[SerializeField]
	private UIInputIcon[] tutorialItemKeys;

	// Token: 0x040026F6 RID: 9974
	[FieldOffset(Offset = "0x98")]
	[Token(Token = "0x40026F6")]
	[SerializeField]
	private UIInputIcon[] tutorialChantKeys;

	// Token: 0x040026F7 RID: 9975
	[FieldOffset(Offset = "0xA0")]
	[Token(Token = "0x40026F7")]
	[SerializeField]
	private UIInputIcon[] tutorialMagicSelectionKeys;

	// Token: 0x040026F8 RID: 9976
	[FieldOffset(Offset = "0xA8")]
	[Token(Token = "0x40026F8")]
	[SerializeField]
	private UIInputIcon[] tutorialCameraModeKeys;

	// Token: 0x040026F9 RID: 9977
	[FieldOffset(Offset = "0xB0")]
	[Token(Token = "0x40026F9")]
	[SerializeField]
	private UIInputIcon[] tutorialUpgradeAndTrade;

	// Token: 0x040026FA RID: 9978
	[FieldOffset(Offset = "0xB8")]
	[Token(Token = "0x40026FA")]
	[SerializeField]
	private UILabelHandler submissionHandler;

	// Token: 0x040026FB RID: 9979
	[FieldOffset(Offset = "0xC0")]
	[Token(Token = "0x40026FB")]
	[SerializeField]
	private UINavigationEffect navigationEffect;

	// Token: 0x040026FC RID: 9980
	[FieldOffset(Offset = "0xC8")]
	[Token(Token = "0x40026FC")]
	[SerializeField]
	private Image submissionEffect;

	// Token: 0x040026FD RID: 9981
	[FieldOffset(Offset = "0xD0")]
	[Token(Token = "0x40026FD")]
	private GameTextDataAdvance textData;

	// Token: 0x040026FE RID: 9982
	[FieldOffset(Offset = "0xD8")]
	[Token(Token = "0x40026FE")]
	private Transform activeInputKeyRoot;

	// Token: 0x040026FF RID: 9983
	[FieldOffset(Offset = "0xE0")]
	[Token(Token = "0x40026FF")]
	private GameTipStyle activeGameTipStyle;
}
