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

// Token: 0x020002CE RID: 718
[Token(Token = "0x20002CE")]
public class UIMagicBar : MonoBehaviour
{
	// Token: 0x06001ACC RID: 6860 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001ACC")]
	[Address(RVA = "0x101A7E0", Offset = "0x10195E0", VA = "0x18101A7E0")]
	public void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001ACD RID: 6861 RVA: 0x0003FFA8 File Offset: 0x0003E1A8
	[Token(Token = "0x6001ACD")]
	[Address(RVA = "0xAD5270", Offset = "0xAD4070", VA = "0x180AD5270")]
	public void UpdateChargeBarShow(bool isDirty)
	{
		this.markChargeBarDirty = isDirty;
	}

	// Token: 0x06001ACE RID: 6862 RVA: 0x0003FFBC File Offset: 0x0003E1BC
	[Token(Token = "0x6001ACE")]
	[Address(RVA = "0x101A940", Offset = "0x1019740", VA = "0x18101A940")]
	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: 0x06001ACF RID: 6863 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001ACF")]
	[Address(RVA = "0x101A780", Offset = "0x1019580", VA = "0x18101A780")]
	public void Dispose()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001AD0 RID: 6864 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001AD0")]
	[Address(RVA = "0x101AED0", Offset = "0x1019CD0", VA = "0x18101AED0")]
	private IEnumerator<float> Tick()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001AD1 RID: 6865 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001AD1")]
	[Address(RVA = "0x101B340", Offset = "0x101A140", VA = "0x18101B340")]
	private void UpdateChargeBar()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001AD2 RID: 6866 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001AD2")]
	[Address(RVA = "0x101AF40", Offset = "0x1019D40", VA = "0x18101AF40")]
	private void UpdateBlinkEffect()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001AD3 RID: 6867 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001AD3")]
	[Address(RVA = "0x101B550", Offset = "0x101A350", VA = "0x18101B550")]
	private void UpdateSmokeEffect()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001AD4 RID: 6868 RVA: 0x0004034C File Offset: 0x0003E54C
	[Token(Token = "0x6001AD4")]
	[Address(RVA = "0x101B290", Offset = "0x101A090", VA = "0x18101B290")]
	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: 0x06001AD5 RID: 6869 RVA: 0x00040398 File Offset: 0x0003E598
	[Token(Token = "0x6001AD5")]
	[Address(RVA = "0x101B740", Offset = "0x101A540", VA = "0x18101B740")]
	public UIMagicBar()
	{
	}

	// Token: 0x040024B9 RID: 9401
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x40024B9")]
	[SerializeField]
	private Image chargeMask;

	// Token: 0x040024BA RID: 9402
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x40024BA")]
	[SerializeField]
	private Image chargeBar;

	// Token: 0x040024BB RID: 9403
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x40024BB")]
	[SerializeField]
	private Image chargeBarBg;

	// Token: 0x040024BC RID: 9404
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x40024BC")]
	[SerializeField]
	private Image chargeBlink;

	// Token: 0x040024BD RID: 9405
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x40024BD")]
	[SerializeField]
	private Image chargeBarBlink;

	// Token: 0x040024BE RID: 9406
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x40024BE")]
	[SerializeField]
	private Image elementSmall;

	// Token: 0x040024BF RID: 9407
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x40024BF")]
	[SerializeField]
	private Image elementBgSmoke;

	// Token: 0x040024C0 RID: 9408
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x40024C0")]
	[SerializeField]
	private Image cdMask;

	// Token: 0x040024C1 RID: 9409
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x40024C1")]
	private bool markChargeBarDirty;

	// Token: 0x040024C2 RID: 9410
	[FieldOffset(Offset = "0x5C")]
	[Token(Token = "0x40024C2")]
	private float elementBgSmokeAlpha;

	// Token: 0x040024C3 RID: 9411
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x40024C3")]
	private float elementBgSmokeSize = 1f;

	// Token: 0x040024C4 RID: 9412
	[FieldOffset(Offset = "0x64")]
	[Token(Token = "0x40024C4")]
	private float elementBgSmokeCos;

	// Token: 0x040024C5 RID: 9413
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x40024C5")]
	private float elementBgSmokeRot;

	// Token: 0x040024C6 RID: 9414
	[FieldOffset(Offset = "0x6C")]
	[Token(Token = "0x40024C6")]
	private float chargeBarAlpha;

	// Token: 0x040024C7 RID: 9415
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x40024C7")]
	private float chargeBlinkAlpha;

	// Token: 0x040024C8 RID: 9416
	[FieldOffset(Offset = "0x74")]
	[Token(Token = "0x40024C8")]
	private float chargeBlinkCos;

	// Token: 0x040024C9 RID: 9417
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x40024C9")]
	private float chargeBlinkSize = 1f;

	// Token: 0x040024CA RID: 9418
	[FieldOffset(Offset = "0x7C")]
	[Token(Token = "0x40024CA")]
	private CoroutineHandle processor;
}
