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

// Token: 0x02000317 RID: 791
[Token(Token = "0x2000317")]
public class UIItemBar : MonoBehaviour
{
	// Token: 0x06001CED RID: 7405 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CED")]
	[Address(RVA = "0xE6BBA0", Offset = "0xE6ABA0", VA = "0x180E6BBA0")]
	public void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CEE RID: 7406 RVA: 0x000456D0 File Offset: 0x000438D0
	[Token(Token = "0x6001CEE")]
	[Address(RVA = "0x52DE70", Offset = "0x52CE70", VA = "0x18052DE70")]
	public int GetItemSelectPos()
	{
		return this.itemSelectPos;
	}

	// Token: 0x06001CEF RID: 7407 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CEF")]
	[Address(RVA = "0xE6CC00", Offset = "0xE6BC00", VA = "0x180E6CC00")]
	public void UpdateItemSprite(ItemSystem.ItemType[] holdItem)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CF0 RID: 7408 RVA: 0x000456E4 File Offset: 0x000438E4
	[Token(Token = "0x6001CF0")]
	[Address(RVA = "0xE6C730", Offset = "0xE6B730", VA = "0x180E6C730")]
	public void UpdateItemSelectMove(int iPos)
	{
		RectTransform rectTransform = this.itemSelectFrame;
		int num = 0;
		if (!(rectTransform == num))
		{
			RectTransform[] array = this.itemElementRects;
			if (array != 0)
			{
				int num2 = this.itemSize;
				if (iPos < num2)
				{
					this.itemSelectPos = iPos;
				}
				this.itemSelectPos = (int)((ulong)0L);
				this.itemSelectPos = num2;
				RectTransform rectTransform2 = this.itemSelectFrame;
				int num3 = this.itemSelectPos;
				Vector2 anchoredPosition = array[num3].anchoredPosition;
				rectTransform2.anchoredPosition = anchoredPosition;
			}
		}
	}

	// Token: 0x06001CF1 RID: 7409 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CF1")]
	[Address(RVA = "0xE6C820", Offset = "0xE6B820", VA = "0x180E6C820")]
	public void UpdateItemSize(int size)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CF2 RID: 7410 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CF2")]
	[Address(RVA = "0xE6C320", Offset = "0xE6B320", VA = "0x180E6C320")]
	public void UpdateInstructions(ItemSystem.ItemType itemType)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CF3 RID: 7411 RVA: 0x00045760 File Offset: 0x00043960
	[Token(Token = "0x6001CF3")]
	[Address(RVA = "0xE6C1F0", Offset = "0xE6B1F0", VA = "0x180E6C1F0")]
	public void Localize(LocalizationData data)
	{
		UIItem[] array = this.itemElements;
		int num = 0;
		int length = array.Length;
		if (num < length)
		{
			UIItem uiitem = array[num];
			GameFontPack fontPack = data.fontPack;
			Text g_TextNum = uiitem.g_TextNum;
			Font light = fontPack.light;
			g_TextNum.font = light;
			num++;
		}
		GameFontPack fontPack2 = data.fontPack;
		Text text = this.instructionsLabel;
		Font regular = fontPack2.regular;
		text.font = regular;
	}

	// Token: 0x06001CF4 RID: 7412 RVA: 0x000457D8 File Offset: 0x000439D8
	[Token(Token = "0x6001CF4")]
	[Address(RVA = "0xE6B950", Offset = "0xE6A950", VA = "0x180E6B950")]
	public void Dispose()
	{
		CoroutineHandle[] array = new CoroutineHandle[3];
		int length = array.Length;
		CoroutineHandle coroutineHandle = this.itemBarProcessor;
		array[0] = coroutineHandle;
		CoroutineHandle coroutineHandle2 = this.newItemProcessor;
		array[0] = coroutineHandle2;
		CoroutineHandle coroutineHandle3 = this.instructionsProcessor;
		array[1] = coroutineHandle3;
		int num = Timing.KillCoroutines(array);
		Game.RemoveDeviceChangedHandler(new Action(this.UpdateItemHotKey));
	}

	// Token: 0x06001CF5 RID: 7413 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CF5")]
	[Address(RVA = "0xE6C2B0", Offset = "0xE6B2B0", VA = "0x180E6C2B0")]
	private IEnumerator<float> MoveItemBar()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CF6 RID: 7414 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CF6")]
	[Address(RVA = "0xE6BB30", Offset = "0xE6AB30", VA = "0x180E6BB30")]
	private IEnumerator<float> FadeOutNewItem()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CF7 RID: 7415 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CF7")]
	[Address(RVA = "0xE6BAC0", Offset = "0xE6AAC0", VA = "0x180E6BAC0")]
	private IEnumerator<float> FadeOutInstructions()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CF8 RID: 7416 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CF8")]
	[Address(RVA = "0xE6C5C0", Offset = "0xE6B5C0", VA = "0x180E6C5C0")]
	private void UpdateItemHotKey(ControllerDevice controllerDevice)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CF9 RID: 7417 RVA: 0x00045844 File Offset: 0x00043A44
	[Token(Token = "0x6001CF9")]
	[Address(RVA = "0xE6CE50", Offset = "0xE6BE50", VA = "0x180E6CE50")]
	public UIItemBar()
	{
	}

	// Token: 0x04002715 RID: 10005
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002715")]
	[SerializeField]
	private GameObject itemElementPrefab;

	// Token: 0x04002716 RID: 10006
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002716")]
	[SerializeField]
	private RectTransform itemBarRoot;

	// Token: 0x04002717 RID: 10007
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002717")]
	[SerializeField]
	private RectTransform itemSelectFrame;

	// Token: 0x04002718 RID: 10008
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4002718")]
	[SerializeField]
	private Image newItemImg;

	// Token: 0x04002719 RID: 10009
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4002719")]
	[SerializeField]
	private Image instructionsImg;

	// Token: 0x0400271A RID: 10010
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x400271A")]
	[SerializeField]
	private Text instructionsLabel;

	// Token: 0x0400271B RID: 10011
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x400271B")]
	private RectTransform[] itemElementRects;

	// Token: 0x0400271C RID: 10012
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x400271C")]
	private UIItem[] itemElements;

	// Token: 0x0400271D RID: 10013
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x400271D")]
	private UIItemSprite itemSpriteCollection;

	// Token: 0x0400271E RID: 10014
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x400271E")]
	private float itemBarRootPos = -105f;

	// Token: 0x0400271F RID: 10015
	[FieldOffset(Offset = "0x64")]
	[Token(Token = "0x400271F")]
	private int itemSize = (int)((ulong)4L);

	// Token: 0x04002720 RID: 10016
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x4002720")]
	private int itemSelectPos;

	// Token: 0x04002721 RID: 10017
	[FieldOffset(Offset = "0x6C")]
	[Token(Token = "0x4002721")]
	private float newItemAlpha;

	// Token: 0x04002722 RID: 10018
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4002722")]
	private float instructionsAlpha;

	// Token: 0x04002723 RID: 10019
	[FieldOffset(Offset = "0x74")]
	[Token(Token = "0x4002723")]
	private float instructionsStayTimeVal;

	// Token: 0x04002724 RID: 10020
	[Token(Token = "0x4002724")]
	private const int DEFAULT_ITEM_SIZE = 4;

	// Token: 0x04002725 RID: 10021
	[Token(Token = "0x4002725")]
	private const float INSTRUC_STAY_TIME = 2.5f;

	// Token: 0x04002726 RID: 10022
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x4002726")]
	private CoroutineHandle itemBarProcessor;

	// Token: 0x04002727 RID: 10023
	[FieldOffset(Offset = "0x7C")]
	[Token(Token = "0x4002727")]
	private CoroutineHandle newItemProcessor;

	// Token: 0x04002728 RID: 10024
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4002728")]
	private CoroutineHandle instructionsProcessor;
}
