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

// Token: 0x0200031B RID: 795
[Token(Token = "0x200031B")]
public class UIMagicBar : MonoBehaviour
{
	// Token: 0x06001D0C RID: 7436 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001D0C")]
	[Address(RVA = "0xE73900", Offset = "0xE72900", VA = "0x180E73900")]
	public void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001D0D RID: 7437 RVA: 0x0004598C File Offset: 0x00043B8C
	[Token(Token = "0x6001D0D")]
	[Address(RVA = "0xBD3B70", Offset = "0xBD2B70", VA = "0x180BD3B70")]
	public void UpdateChargeBarShow(bool isDirty)
	{
		this.markChargeBarDirty = isDirty;
	}

	// Token: 0x06001D0E RID: 7438 RVA: 0x000459A0 File Offset: 0x00043BA0
	[Token(Token = "0x6001D0E")]
	[Address(RVA = "0xE73A60", Offset = "0xE72A60", VA = "0x180E73A60")]
	public void SetMagicSprites(PlayerEffectPlay.Magic magicType)
	{
		Image image = this.elementSmall;
		int num = magicType - PlayerEffectPlay.Magic.Ice;
		int num2 = 0;
		this.chargeBlinkAlpha = 1f;
		this.chargeBlinkSize = 1.25f;
		this.elementBgSmokeCos = (float)num2;
		this.elementBgSmokeAlpha = (float)num2;
		if (num != 0)
		{
			if (num != 0)
			{
				if (num != 1)
				{
					Sprite elementSmall_Null = Game.GetUIElementSprites().ElementSmall_Null;
					image.sprite = elementSmall_Null;
					Image image2 = this.chargeMask;
					Sprite chargeBur_Null = Game.GetUIElementSprites().ChargeBur_Null;
					image2.sprite = chargeBur_Null;
					Image image3 = this.chargeBar;
					Sprite chargeBur_Null2 = Game.GetUIElementSprites().ChargeBur_Null;
					image3.sprite = chargeBur_Null2;
					Image image4 = this.chargeBarBg;
					Sprite chargeBurBG_Null = Game.GetUIElementSprites().ChargeBurBG_Null;
					image4.sprite = chargeBurBG_Null;
					Image image5 = this.chargeBlink;
					Sprite elementSmall_Null2 = Game.GetUIElementSprites().ElementSmall_Null;
					image5.sprite = elementSmall_Null2;
					Image image6 = this.chargeBarBlink;
					Sprite chargeBur_Null3 = Game.GetUIElementSprites().ChargeBur_Null;
					image6.sprite = chargeBur_Null3;
					Image image7 = this.elementBgSmoke;
					Sprite elementBGSmoke_Null = Game.GetUIElementSprites().ElementBGSmoke_Null;
					image7.sprite = elementBGSmoke_Null;
					return;
				}
				Sprite elementSmall_Lightning = Game.GetUIElementSprites().ElementSmall_Lightning;
				image.sprite = elementSmall_Lightning;
				Image image8 = this.chargeMask;
				Sprite chargeBur_Lightning = Game.GetUIElementSprites().ChargeBur_Lightning;
				image8.sprite = chargeBur_Lightning;
				Image image9 = this.chargeBar;
				Sprite chargeBur_Lightning2 = Game.GetUIElementSprites().ChargeBur_Lightning;
				image9.sprite = chargeBur_Lightning2;
				Image image10 = this.chargeBarBg;
				Sprite chargeBurBG_Lightning = Game.GetUIElementSprites().ChargeBurBG_Lightning;
				image10.sprite = chargeBurBG_Lightning;
				Image image11 = this.chargeBlink;
				Sprite elementSmall_Lightning2 = Game.GetUIElementSprites().ElementSmall_Lightning;
				image11.sprite = elementSmall_Lightning2;
				Image image12 = this.chargeBarBlink;
				Sprite chargeBur_Lightning3 = Game.GetUIElementSprites().ChargeBur_Lightning;
				image12.sprite = chargeBur_Lightning3;
				Image image13 = this.elementBgSmoke;
				UIElementSprite uielementSprites = Game.GetUIElementSprites();
			}
			Sprite elementSmall_Fire = Game.GetUIElementSprites().ElementSmall_Fire;
			image.sprite = elementSmall_Fire;
			Image image14 = this.chargeMask;
			Sprite chargeBur_Fire = Game.GetUIElementSprites().ChargeBur_Fire;
			image14.sprite = chargeBur_Fire;
			Image image15 = this.chargeBar;
			Sprite chargeBur_Fire2 = Game.GetUIElementSprites().ChargeBur_Fire;
			image15.sprite = chargeBur_Fire2;
			Image image16 = this.chargeBarBg;
			Sprite chargeBurBG_Fire = Game.GetUIElementSprites().ChargeBurBG_Fire;
			image16.sprite = chargeBurBG_Fire;
			Image image17 = this.chargeBlink;
			Sprite elementSmall_Fire2 = Game.GetUIElementSprites().ElementSmall_Fire;
			image17.sprite = elementSmall_Fire2;
			Image image18 = this.chargeBarBlink;
			Sprite chargeBur_Fire3 = Game.GetUIElementSprites().ChargeBur_Fire;
			image18.sprite = chargeBur_Fire3;
			Image image19 = this.elementBgSmoke;
			UIElementSprite uielementSprites2 = Game.GetUIElementSprites();
		}
		Sprite elementSmall_Ice = Game.GetUIElementSprites().ElementSmall_Ice;
		image.sprite = elementSmall_Ice;
		Image image20 = this.chargeMask;
		Sprite chargeBur_Ice = Game.GetUIElementSprites().ChargeBur_Ice;
		image20.sprite = chargeBur_Ice;
		Image image21 = this.chargeBar;
		Sprite chargeBur_Ice2 = Game.GetUIElementSprites().ChargeBur_Ice;
		image21.sprite = chargeBur_Ice2;
		Image image22 = this.chargeBarBg;
		Sprite chargeBurBG_Ice = Game.GetUIElementSprites().ChargeBurBG_Ice;
		image22.sprite = chargeBurBG_Ice;
		Image image23 = this.chargeBlink;
		Sprite elementSmall_Ice2 = Game.GetUIElementSprites().ElementSmall_Ice;
		image23.sprite = elementSmall_Ice2;
		Image image24 = this.chargeBarBlink;
		Sprite chargeBur_Ice3 = Game.GetUIElementSprites().ChargeBur_Ice;
		image24.sprite = chargeBur_Ice3;
		Image image25 = this.elementBgSmoke;
		UIElementSprite uielementSprites3 = Game.GetUIElementSprites();
		throw new NullReferenceException();
	}

	// Token: 0x06001D0F RID: 7439 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001D0F")]
	[Address(RVA = "0xE738A0", Offset = "0xE728A0", VA = "0x180E738A0")]
	public void Dispose()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001D10 RID: 7440 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001D10")]
	[Address(RVA = "0xE73FF0", Offset = "0xE72FF0", VA = "0x180E73FF0")]
	private IEnumerator<float> Tick()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001D11 RID: 7441 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001D11")]
	[Address(RVA = "0xE74460", Offset = "0xE73460", VA = "0x180E74460")]
	private void UpdateChargeBar()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001D12 RID: 7442 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001D12")]
	[Address(RVA = "0xE74060", Offset = "0xE73060", VA = "0x180E74060")]
	private void UpdateBlinkEffect()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001D13 RID: 7443 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001D13")]
	[Address(RVA = "0xE74670", Offset = "0xE73670", VA = "0x180E74670")]
	private void UpdateSmokeEffect()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001D14 RID: 7444 RVA: 0x00045D30 File Offset: 0x00043F30
	[Token(Token = "0x6001D14")]
	[Address(RVA = "0xE743B0", Offset = "0xE733B0", VA = "0x180E743B0")]
	private void UpdateCDMask()
	{
		Image image = this.cdMask;
		CharacterBaseData playerCharData = Game.GetPlayerCharData();
		PlayerEffectPlay.Magic g_Magic = Game.GetPlayerManager().playerEffect.g_Magic;
		float cdscale = playerCharData.GetCDScale(g_Magic);
		image.fillAmount = 1f;
	}

	// Token: 0x06001D15 RID: 7445 RVA: 0x00045D7C File Offset: 0x00043F7C
	[Token(Token = "0x6001D15")]
	[Address(RVA = "0xE74860", Offset = "0xE73860", VA = "0x180E74860")]
	public UIMagicBar()
	{
	}

	// Token: 0x04002733 RID: 10035
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002733")]
	[SerializeField]
	private Image chargeMask;

	// Token: 0x04002734 RID: 10036
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002734")]
	[SerializeField]
	private Image chargeBar;

	// Token: 0x04002735 RID: 10037
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002735")]
	[SerializeField]
	private Image chargeBarBg;

	// Token: 0x04002736 RID: 10038
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4002736")]
	[SerializeField]
	private Image chargeBlink;

	// Token: 0x04002737 RID: 10039
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4002737")]
	[SerializeField]
	private Image chargeBarBlink;

	// Token: 0x04002738 RID: 10040
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4002738")]
	[SerializeField]
	private Image elementSmall;

	// Token: 0x04002739 RID: 10041
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4002739")]
	[SerializeField]
	private Image elementBgSmoke;

	// Token: 0x0400273A RID: 10042
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x400273A")]
	[SerializeField]
	private Image cdMask;

	// Token: 0x0400273B RID: 10043
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x400273B")]
	private bool markChargeBarDirty;

	// Token: 0x0400273C RID: 10044
	[FieldOffset(Offset = "0x5C")]
	[Token(Token = "0x400273C")]
	private float elementBgSmokeAlpha;

	// Token: 0x0400273D RID: 10045
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x400273D")]
	private float elementBgSmokeSize = 1f;

	// Token: 0x0400273E RID: 10046
	[FieldOffset(Offset = "0x64")]
	[Token(Token = "0x400273E")]
	private float elementBgSmokeCos;

	// Token: 0x0400273F RID: 10047
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x400273F")]
	private float elementBgSmokeRot;

	// Token: 0x04002740 RID: 10048
	[FieldOffset(Offset = "0x6C")]
	[Token(Token = "0x4002740")]
	private float chargeBarAlpha;

	// Token: 0x04002741 RID: 10049
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4002741")]
	private float chargeBlinkAlpha;

	// Token: 0x04002742 RID: 10050
	[FieldOffset(Offset = "0x74")]
	[Token(Token = "0x4002742")]
	private float chargeBlinkCos;

	// Token: 0x04002743 RID: 10051
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x4002743")]
	private float chargeBlinkSize = 1f;

	// Token: 0x04002744 RID: 10052
	[FieldOffset(Offset = "0x7C")]
	[Token(Token = "0x4002744")]
	private CoroutineHandle processor;
}
