using System;
using Cpp2IlInjected;
using MarsSDK;
using UnityEngine;

// Token: 0x02000313 RID: 787
[Token(Token = "0x2000313")]
public class UIGameTipContentHandler : MonoBehaviour
{
	// Token: 0x06001CD9 RID: 7385 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CD9")]
	[Address(RVA = "0x19E28F0", Offset = "0x19E18F0", VA = "0x1819E28F0")]
	public void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CDA RID: 7386 RVA: 0x00045474 File Offset: 0x00043674
	[Token(Token = "0x6001CDA")]
	[Address(RVA = "0x19E2B60", Offset = "0x19E1B60", VA = "0x1819E2B60")]
	public void SetContentData(string data)
	{
		this.pooledElements.ReturnAll();
		this.content = data;
		throw new NullReferenceException();
	}

	// Token: 0x06001CDB RID: 7387 RVA: 0x00045498 File Offset: 0x00043698
	[Token(Token = "0x6001CDB")]
	[Address(RVA = "0x19E2CC0", Offset = "0x19E1CC0", VA = "0x1819E2CC0")]
	public void SetContentInputIcons(UIInputIcon[] collection)
	{
		int num = 0;
		this.inputIconIndex = num;
		this.inputIcons = num;
		if (collection != 0)
		{
			this.inputIcons = collection;
		}
	}

	// Token: 0x06001CDC RID: 7388 RVA: 0x000454C0 File Offset: 0x000436C0
	[Token(Token = "0x6001CDC")]
	[Address(RVA = "0x19E2BC0", Offset = "0x19E1BC0", VA = "0x1819E2BC0")]
	public void SetContentFont(GameFontPack fontPack)
	{
		GameObjectPoolLimited<UIGameTipContentElement> gameObjectPoolLimited = this.pooledElements;
		if (gameObjectPoolLimited == 0)
		{
			this.Init();
		}
		Action<UIGameTipContentElement> action = delegate(UIGameTipContentElement element)
		{
			GameFontPack fontPack2 = fontPack;
			element.SetFont(fontPack2);
		};
		gameObjectPoolLimited.ProcessSparePool(action);
	}

	// Token: 0x06001CDD RID: 7389 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001CDD")]
	[Address(RVA = "0x19E2D10", Offset = "0x19E1D10", VA = "0x1819E2D10")]
	public void UpdateContentData()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001CDE RID: 7390 RVA: 0x00045508 File Offset: 0x00043708
	[Token(Token = "0x6001CDE")]
	[Address(RVA = "0x19E2B10", Offset = "0x19E1B10", VA = "0x1819E2B10")]
	public void ReturnActiveElements()
	{
		this.pooledElements.ReturnAll();
	}

	// Token: 0x06001CDF RID: 7391 RVA: 0x00045528 File Offset: 0x00043728
	[Token(Token = "0x6001CDF")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public UIGameTipContentHandler()
	{
	}

	// Token: 0x04002704 RID: 9988
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002704")]
	[SerializeField]
	private GameObject gameTipContentTemplate;

	// Token: 0x04002705 RID: 9989
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002705")]
	[SerializeField]
	private RectTransform sparePoolRoot;

	// Token: 0x04002706 RID: 9990
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002706")]
	[SerializeField]
	private RectTransform activePoolRoot;

	// Token: 0x04002707 RID: 9991
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4002707")]
	private GameObjectPoolLimited<UIGameTipContentElement> pooledElements;

	// Token: 0x04002708 RID: 9992
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4002708")]
	private string content;

	// Token: 0x04002709 RID: 9993
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4002709")]
	private UIInputIcon[] inputIcons;

	// Token: 0x0400270A RID: 9994
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x400270A")]
	private int inputIconIndex;

	// Token: 0x0400270B RID: 9995
	[Token(Token = "0x400270B")]
	private const int BREAK_LINES_COEFF = 2;

	// Token: 0x0400270C RID: 9996
	[Token(Token = "0x400270C")]
	private const float SINGLE_LINE_MAX_HEIGHT = 36f;

	// Token: 0x0400270D RID: 9997
	[Token(Token = "0x400270D")]
	private const float SINGLE_LINE_MIN_HEIGHT = 24f;
}
