using System;
using System.Text.RegularExpressions;
using Cpp2IlInjected;
using MarsSDK;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x0200027B RID: 635
[Token(Token = "0x200027B")]
public class UIMagicStatsHandler : UIHandlerBase
{
	// Token: 0x170000E7 RID: 231
	// (get) Token: 0x0600179C RID: 6044 RVA: 0x000360FC File Offset: 0x000342FC
	[Token(Token = "0x170000E7")]
	public string Description
	{
		[Token(Token = "0x600179C")]
		[Address(RVA = "0x4D0E00", Offset = "0x4CFE00", VA = "0x1804D0E00")]
		get
		{
			return this.description;
		}
	}

	// Token: 0x0600179D RID: 6045 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600179D")]
	[Address(RVA = "0xE78A40", Offset = "0xE77A40", VA = "0x180E78A40")]
	public void UpdateContent()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600179E RID: 6046 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600179E")]
	[Address(RVA = "0xE77F50", Offset = "0xE76F50", VA = "0x180E77F50")]
	private ValueTuple<int, bool> GetData()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600179F RID: 6047 RVA: 0x00036110 File Offset: 0x00034310
	[Token(Token = "0x600179F")]
	[Address(RVA = "0xE78DC0", Offset = "0xE77DC0", VA = "0x180E78DC0")]
	private void UpdateTitleText()
	{
		if (this.level == 5)
		{
			string text = Game.<UISystemText>k__BackingField.GetText(322);
		}
		string text2 = Game.<UISystemText>k__BackingField.GetText(321);
		int num = this.level;
		string text3 = string.Format("{0}{1}", text2, text2);
		Text text4 = this.label;
		string text5 = this.GetTitleText() + "\n<size=18>" + text3 + "</size>";
		((ICanvasElement)text4).GraphicUpdateComplete();
	}

	// Token: 0x060017A0 RID: 6048 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60017A0")]
	[Address(RVA = "0xE78630", Offset = "0xE77630", VA = "0x180E78630")]
	private string GetTitleText()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060017A1 RID: 6049 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60017A1")]
	[Address(RVA = "0xE78C80", Offset = "0xE77C80", VA = "0x180E78C80")]
	private void UpdateTipIcon(bool showIcon)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060017A2 RID: 6050 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60017A2")]
	[Address(RVA = "0xE78BF0", Offset = "0xE77BF0", VA = "0x180E78BF0")]
	private void UpdateDescription()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060017A3 RID: 6051 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60017A3")]
	[Address(RVA = "0xE782F0", Offset = "0xE772F0", VA = "0x180E782F0")]
	private string GetDescription()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060017A4 RID: 6052 RVA: 0x00036188 File Offset: 0x00034388
	[Token(Token = "0x60017A4")]
	[Address(RVA = "0xE78970", Offset = "0xE77970", VA = "0x180E78970")]
	public void Localize(GameFontPack fontPack)
	{
		Text text = this.label;
		Font regular = fontPack.regular;
		text.font = regular;
	}

	// Token: 0x060017A5 RID: 6053 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60017A5")]
	[Address(RVA = "0xE78940", Offset = "0xE77940", VA = "0x180E78940")]
	public float GetWidth()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060017A6 RID: 6054 RVA: 0x000361B0 File Offset: 0x000343B0
	[Token(Token = "0x60017A6")]
	[Address(RVA = "0xE789F0", Offset = "0xE779F0", VA = "0x180E789F0", Slot = "8")]
	public override void OnSelect()
	{
		Action<UIHandlerBase> onSelectedHandler = this.onSelectedHandler;
		if (onSelectedHandler != 0)
		{
			onSelectedHandler(this);
			return;
		}
	}

	// Token: 0x060017A7 RID: 6055 RVA: 0x000361D0 File Offset: 0x000343D0
	[Token(Token = "0x60017A7")]
	[Address(RVA = "0xE789A0", Offset = "0xE779A0", VA = "0x180E789A0", Slot = "9")]
	public override void OnDeselect()
	{
		Action<UIHandlerBase> onDeselectedHandler = this.onDeselectedHandler;
		if (onDeselectedHandler != 0)
		{
			onDeselectedHandler(this);
			return;
		}
	}

	// Token: 0x060017A8 RID: 6056 RVA: 0x000361F0 File Offset: 0x000343F0
	[Token(Token = "0x60017A8")]
	[Address(RVA = "0xE79000", Offset = "0xE78000", VA = "0x180E79000")]
	public UIMagicStatsHandler()
	{
		Regex regex = new Regex("\\n\\s*\\n");
		this.regex = regex;
		base..ctor();
	}

	// Token: 0x04002306 RID: 8966
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x4002306")]
	[SerializeField]
	private Image tipIcon;

	// Token: 0x04002307 RID: 8967
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4002307")]
	[SerializeField]
	private Text label;

	// Token: 0x04002308 RID: 8968
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x4002308")]
	private int level;

	// Token: 0x04002309 RID: 8969
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4002309")]
	private string description;

	// Token: 0x0400230A RID: 8970
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x400230A")]
	private Regex regex;
}
