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

// Token: 0x0200030F RID: 783
[Token(Token = "0x200030F")]
public class UIMagicSelector : MonoBehaviour
{
	// Token: 0x06001CA6 RID: 7334 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CA6")]
	[Address(RVA = "0xE76870", Offset = "0xE75870", VA = "0x180E76870")]
	public void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CA7 RID: 7335 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CA7")]
	[Address(RVA = "0xE76AB0", Offset = "0xE75AB0", VA = "0x180E76AB0")]
	public void SetMagicSelectEnable(bool bEnable)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CA8 RID: 7336 RVA: 0x00044D1C File Offset: 0x00042F1C
	[Token(Token = "0x6001CA8")]
	[Address(RVA = "0x4E8BF0", Offset = "0x4E7BF0", VA = "0x1804E8BF0")]
	public bool GetMagicSelectEnable()
	{
		return this.isMagicSelectEnabled;
	}

	// Token: 0x06001CA9 RID: 7337 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CA9")]
	[Address(RVA = "0xE76A30", Offset = "0xE75A30", VA = "0x180E76A30")]
	public bool IsMagicSelected()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CAA RID: 7338 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CAA")]
	[Address(RVA = "0xE76D30", Offset = "0xE75D30", VA = "0x180E76D30")]
	public void SwitchMagic(PlayerEffectPlay.Magic magicType)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CAB RID: 7339 RVA: 0x00044D30 File Offset: 0x00042F30
	[Token(Token = "0x6001CAB")]
	[Address(RVA = "0xE76A40", Offset = "0xE75A40", VA = "0x180E76A40")]
	public void Localize(LocalizationData data)
	{
		GameFontPack fontPack = data.fontPack;
		Text text = this.magicTitleLabel;
		Font regular = fontPack.regular;
		text.font = regular;
		GameFontPack fontPack2 = data.fontPack;
		Text text2 = this.magicDescription;
		Font regular2 = fontPack2.regular;
		text2.font = regular2;
	}

	// Token: 0x06001CAC RID: 7340 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CAC")]
	[Address(RVA = "0xE766B0", Offset = "0xE756B0", VA = "0x180E766B0")]
	public void Dispose()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CAD RID: 7341 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CAD")]
	[Address(RVA = "0xE76F70", Offset = "0xE75F70", VA = "0x180E76F70")]
	private IEnumerator<float> Tick()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CAE RID: 7342 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CAE")]
	[Address(RVA = "0xE76FE0", Offset = "0xE75FE0", VA = "0x180E76FE0")]
	public void UpdateMagicPointer(Vector2 value)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CAF RID: 7343 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CAF")]
	[Address(RVA = "0xE77150", Offset = "0xE76150", VA = "0x180E77150")]
	private void UpdateMagicSelectUI()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CB0 RID: 7344 RVA: 0x00044D80 File Offset: 0x00042F80
	[Token(Token = "0x6001CB0")]
	[Address(RVA = "0xE76710", Offset = "0xE75710", VA = "0x180E76710")]
	private int GetCurrentMagicID(float degree)
	{
		for (;;)
		{
			if (degree <= 135f)
			{
				int num = 0;
				if (degree <= (float)num)
				{
					if (Game.GameSave.stats.thunderMagicLevel > 0)
					{
						break;
					}
				}
				else if (Game.GameSave.stats.iceMagicLevel > 0)
				{
					return 1;
				}
			}
			else if (Game.GameSave.stats.fireMagicLevel > 0)
			{
				return 2;
			}
		}
		return 3;
	}

	// Token: 0x06001CB1 RID: 7345 RVA: 0x00044DE4 File Offset: 0x00042FE4
	[Token(Token = "0x6001CB1")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public UIMagicSelector()
	{
	}

	// Token: 0x040026DA RID: 9946
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x40026DA")]
	[SerializeField]
	private UIMagicHandler[] magicHandlers;

	// Token: 0x040026DB RID: 9947
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x40026DB")]
	[SerializeField]
	private Image magicSelectBg;

	// Token: 0x040026DC RID: 9948
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x40026DC")]
	[SerializeField]
	private RectTransform magicSelectArrowRot;

	// Token: 0x040026DD RID: 9949
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x40026DD")]
	[SerializeField]
	private Image magicSelectArrow;

	// Token: 0x040026DE RID: 9950
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x40026DE")]
	[SerializeField]
	private Image magicSelectCenterBlack;

	// Token: 0x040026DF RID: 9951
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x40026DF")]
	[SerializeField]
	private Image magicSelectReelArray;

	// Token: 0x040026E0 RID: 9952
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x40026E0")]
	[SerializeField]
	private Text magicTitleLabel;

	// Token: 0x040026E1 RID: 9953
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x40026E1")]
	[SerializeField]
	private Text magicDescription;

	// Token: 0x040026E2 RID: 9954
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x40026E2")]
	private bool isMagicSelectEnabled;

	// Token: 0x040026E3 RID: 9955
	[FieldOffset(Offset = "0x5C")]
	[Token(Token = "0x40026E3")]
	private float magicSelectAlpha;

	// Token: 0x040026E4 RID: 9956
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x40026E4")]
	private float cursorX;

	// Token: 0x040026E5 RID: 9957
	[FieldOffset(Offset = "0x64")]
	[Token(Token = "0x40026E5")]
	private float cursorY;

	// Token: 0x040026E6 RID: 9958
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x40026E6")]
	private float arrowDegree;

	// Token: 0x040026E7 RID: 9959
	[FieldOffset(Offset = "0x6C")]
	[Token(Token = "0x40026E7")]
	private int preMagicID;

	// Token: 0x040026E8 RID: 9960
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x40026E8")]
	private int curMagicID;

	// Token: 0x040026E9 RID: 9961
	[FieldOffset(Offset = "0x74")]
	[Token(Token = "0x40026E9")]
	private CoroutineHandle processor;

	// Token: 0x040026EA RID: 9962
	[Token(Token = "0x40026EA")]
	private const float MAGIC_SPEED = 6f;
}
