using System;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x02000316 RID: 790
[Token(Token = "0x2000316")]
public class UIItem : MonoBehaviour
{
	// Token: 0x06001CE7 RID: 7399 RVA: 0x000455E8 File Offset: 0x000437E8
	[Token(Token = "0x6001CE7")]
	[Address(RVA = "0xE6D010", Offset = "0xE6C010", VA = "0x180E6D010")]
	public void InitData()
	{
		Image component = base.transform.Find("Item_BG").GetComponent<Image>();
		this.g_ItemBG = component;
		Image component2 = base.transform.Find("Item_Type").GetComponent<Image>();
		this.g_ItemImg = component2;
		Text component3 = base.transform.Find("TextNum").GetComponent<Text>();
		this.g_TextNum = component3;
		throw new NullReferenceException();
	}

	// Token: 0x06001CE8 RID: 7400 RVA: 0x00045654 File Offset: 0x00043854
	[Token(Token = "0x6001CE8")]
	[Address(RVA = "0xE6D220", Offset = "0xE6C220", VA = "0x180E6D220")]
	public void SetItemSprite(Sprite ItemSprite)
	{
		this.g_ItemImg.sprite = ItemSprite;
	}

	// Token: 0x06001CE9 RID: 7401 RVA: 0x00045674 File Offset: 0x00043874
	[Token(Token = "0x6001CE9")]
	[Address(RVA = "0xE6D240", Offset = "0xE6C240", VA = "0x180E6D240")]
	public void SetTextNumber(string TextNumber)
	{
		((ICanvasElement)this.g_TextNum).GraphicUpdateComplete();
	}

	// Token: 0x06001CEA RID: 7402 RVA: 0x00045694 File Offset: 0x00043894
	[Token(Token = "0x6001CEA")]
	[Address(RVA = "0xE6D1F0", Offset = "0xE6C1F0", VA = "0x180E6D1F0")]
	public void SetFont(GameFontPack fontPack)
	{
		Text text = this.g_TextNum;
		Font light = fontPack.light;
		text.font = light;
	}

	// Token: 0x06001CEB RID: 7403 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CEB")]
	[Address(RVA = "0xE6D150", Offset = "0xE6C150", VA = "0x180E6D150")]
	public void SetColor(Color Col)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CEC RID: 7404 RVA: 0x000456BC File Offset: 0x000438BC
	[Token(Token = "0x6001CEC")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public UIItem()
	{
	}

	// Token: 0x04002712 RID: 10002
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002712")]
	private Image g_ItemBG;

	// Token: 0x04002713 RID: 10003
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002713")]
	private Image g_ItemImg;

	// Token: 0x04002714 RID: 10004
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002714")]
	private Text g_TextNum;
}
