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

// Token: 0x020002C6 RID: 710
[Token(Token = "0x20002C6")]
public class UIGameTipContentHandler : MonoBehaviour
{
	// Token: 0x06001A99 RID: 6809 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A99")]
	[Address(RVA = "0x7676E0", Offset = "0x7664E0", VA = "0x1807676E0")]
	public void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A9A RID: 6810 RVA: 0x0003FA40 File Offset: 0x0003DC40
	[Token(Token = "0x6001A9A")]
	[Address(RVA = "0x767950", Offset = "0x766750", VA = "0x180767950")]
	public void SetContentData(string data)
	{
		this.pooledElements.ReturnAll();
		this.content = data;
		throw new NullReferenceException();
	}

	// Token: 0x06001A9B RID: 6811 RVA: 0x0003FA64 File Offset: 0x0003DC64
	[Token(Token = "0x6001A9B")]
	[Address(RVA = "0x767AB0", Offset = "0x7668B0", VA = "0x180767AB0")]
	public void SetContentInputIcons(UIInputIcon[] collection)
	{
		int num = 0;
		this.inputIconIndex = num;
		this.inputIcons = num;
		if (collection != 0)
		{
			this.inputIcons = collection;
		}
	}

	// Token: 0x06001A9C RID: 6812 RVA: 0x0003FA8C File Offset: 0x0003DC8C
	[Token(Token = "0x6001A9C")]
	[Address(RVA = "0x7679B0", Offset = "0x7667B0", VA = "0x1807679B0")]
	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: 0x06001A9D RID: 6813 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A9D")]
	[Address(RVA = "0x767B00", Offset = "0x766900", VA = "0x180767B00")]
	public void UpdateContentData()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A9E RID: 6814 RVA: 0x0003FAD4 File Offset: 0x0003DCD4
	[Token(Token = "0x6001A9E")]
	[Address(RVA = "0x767900", Offset = "0x766700", VA = "0x180767900")]
	public void ReturnActiveElements()
	{
		this.pooledElements.ReturnAll();
	}

	// Token: 0x06001A9F RID: 6815 RVA: 0x0003FAF4 File Offset: 0x0003DCF4
	[Token(Token = "0x6001A9F")]
	[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
	public UIGameTipContentHandler()
	{
	}

	// Token: 0x0400248A RID: 9354
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x400248A")]
	[SerializeField]
	private GameObject gameTipContentTemplate;

	// Token: 0x0400248B RID: 9355
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x400248B")]
	[SerializeField]
	private RectTransform sparePoolRoot;

	// Token: 0x0400248C RID: 9356
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x400248C")]
	[SerializeField]
	private RectTransform activePoolRoot;

	// Token: 0x0400248D RID: 9357
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x400248D")]
	private GameObjectPoolLimited<UIGameTipContentElement> pooledElements;

	// Token: 0x0400248E RID: 9358
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x400248E")]
	private string content;

	// Token: 0x0400248F RID: 9359
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x400248F")]
	private UIInputIcon[] inputIcons;

	// Token: 0x04002490 RID: 9360
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4002490")]
	private int inputIconIndex;

	// Token: 0x04002491 RID: 9361
	[Token(Token = "0x4002491")]
	private const int BREAK_LINES_COEFF = 2;

	// Token: 0x04002492 RID: 9362
	[Token(Token = "0x4002492")]
	private const float SINGLE_LINE_MAX_HEIGHT = 36f;

	// Token: 0x04002493 RID: 9363
	[Token(Token = "0x4002493")]
	private const float SINGLE_LINE_MIN_HEIGHT = 24f;
}
