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

// Token: 0x020002C5 RID: 709
[Token(Token = "0x20002C5")]
public class UIGameTipContentElement : MonoBehaviour
{
	// Token: 0x1700012D RID: 301
	// (get) Token: 0x06001A8E RID: 6798 RVA: 0x0003F8F4 File Offset: 0x0003DAF4
	[Token(Token = "0x1700012D")]
	public RectTransform Root
	{
		[Token(Token = "0x6001A8E")]
		[Address(RVA = "0x2B4380", Offset = "0x2B3180", VA = "0x1802B4380")]
		get
		{
			return this.root;
		}
	}

	// Token: 0x06001A8F RID: 6799 RVA: 0x0003F908 File Offset: 0x0003DB08
	[Token(Token = "0x6001A8F")]
	[Address(RVA = "0x7673F0", Offset = "0x7661F0", VA = "0x1807673F0")]
	public void Init()
	{
		RectTransform rectTransform = this.root;
		int num = 0;
		if (rectTransform == num)
		{
			RectTransform component = base.GetComponent<RectTransform>();
			this.root = component;
		}
		Text text = this.label;
		int num2 = 0;
		if (text == num2)
		{
			Text component2 = base.GetComponent<Text>();
			this.label = component2;
		}
	}

	// Token: 0x06001A90 RID: 6800 RVA: 0x0003F95C File Offset: 0x0003DB5C
	[Token(Token = "0x6001A90")]
	[Address(RVA = "0x767590", Offset = "0x766390", VA = "0x180767590")]
	public void UpdateContent(string data, out float labelWidth)
	{
		this.label.text = data;
		float preferredWidth = this.label.preferredWidth;
		labelWidth.m_value = preferredWidth;
	}

	// Token: 0x06001A91 RID: 6801 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A91")]
	[Address(RVA = "0x7675F0", Offset = "0x7663F0", VA = "0x1807675F0")]
	public void UpdateElementSize()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A92 RID: 6802 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A92")]
	[Address(RVA = "0x767630", Offset = "0x766430", VA = "0x180767630")]
	public void UpdateRect(bool isFirstElement)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A93 RID: 6803 RVA: 0x0003F990 File Offset: 0x0003DB90
	[Token(Token = "0x6001A93")]
	[Address(RVA = "0x767570", Offset = "0x766370", VA = "0x180767570")]
	public void UpdateAnchoredPosition(Vector2 position)
	{
		this.root.anchoredPosition = position;
	}

	// Token: 0x06001A94 RID: 6804 RVA: 0x0003F9B0 File Offset: 0x0003DBB0
	[Token(Token = "0x6001A94")]
	[Address(RVA = "0x767520", Offset = "0x766320", VA = "0x180767520")]
	public void SetLabelVisible(bool isVisible)
	{
		this.label.enabled = isVisible;
	}

	// Token: 0x06001A95 RID: 6805 RVA: 0x0003F9D0 File Offset: 0x0003DBD0
	[Token(Token = "0x6001A95")]
	[Address(RVA = "0x7674F0", Offset = "0x7662F0", VA = "0x1807674F0")]
	public void SetFont(GameFontPack fontPack)
	{
		Text text = this.label;
		Font regular = fontPack.regular;
		text.font = regular;
	}

	// Token: 0x06001A96 RID: 6806 RVA: 0x0003F9F8 File Offset: 0x0003DBF8
	[Token(Token = "0x6001A96")]
	[Address(RVA = "0x767540", Offset = "0x766340", VA = "0x180767540")]
	public void SetParent(Transform parent)
	{
		base.transform.parentInternal = parent;
	}

	// Token: 0x06001A97 RID: 6807 RVA: 0x0003FA18 File Offset: 0x0003DC18
	[Token(Token = "0x6001A97")]
	[Address(RVA = "0x5F9930", Offset = "0x5F8730", VA = "0x1805F9930")]
	public void SetElementWidth(float width)
	{
		this.elementWidth = width;
	}

	// Token: 0x06001A98 RID: 6808 RVA: 0x0003FA2C File Offset: 0x0003DC2C
	[Token(Token = "0x6001A98")]
	[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
	public UIGameTipContentElement()
	{
	}

	// Token: 0x04002486 RID: 9350
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002486")]
	private RectTransform root;

	// Token: 0x04002487 RID: 9351
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002487")]
	private Text label;

	// Token: 0x04002488 RID: 9352
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002488")]
	private float elementWidth;

	// Token: 0x04002489 RID: 9353
	[Token(Token = "0x4002489")]
	private const float DEFAULT_ELEMENT_HEIGHT = 50f;
}
