using System;
using Cpp2IlInjected;
using DG.Tweening;
using DG.Tweening.Core;
using DG.Tweening.Plugins.Options;
using MarsSDK;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x020002D1 RID: 721
[Token(Token = "0x20002D1")]
public class UILabelHandler : UIHandlerBase
{
	// Token: 0x06001B08 RID: 6920 RVA: 0x00041F1C File Offset: 0x0004011C
	[Token(Token = "0x6001B08")]
	[Address(RVA = "0xE72B40", Offset = "0xE71B40", VA = "0x180E72B40", Slot = "8")]
	public override void OnSelect()
	{
		this.UpdateScale(1.25f);
		Action<UIHandlerBase> onSelectedHandler = this.onSelectedHandler;
		if (onSelectedHandler != 0)
		{
			onSelectedHandler(this);
			return;
		}
	}

	// Token: 0x06001B09 RID: 6921 RVA: 0x00041F48 File Offset: 0x00040148
	[Token(Token = "0x6001B09")]
	[Address(RVA = "0xE72AE0", Offset = "0xE71AE0", VA = "0x180E72AE0", Slot = "9")]
	public override void OnDeselect()
	{
		this.UpdateScale(1f);
		Action<UIHandlerBase> onDeselectedHandler = this.onDeselectedHandler;
		if (onDeselectedHandler != 0)
		{
			onDeselectedHandler(this);
			return;
		}
	}

	// Token: 0x06001B0A RID: 6922 RVA: 0x00041F74 File Offset: 0x00040174
	[Token(Token = "0x6001B0A")]
	[Address(RVA = "0xE72C60", Offset = "0xE71C60", VA = "0x180E72C60")]
	private void UpdateScale(float scale)
	{
		TweenerCore<Vector3, Vector3, VectorOptions> tweenerCore = ShortcutExtensions.DOScale(this.label.rectTransform, scale, 0.2f).SetEase((Ease)((uint)3)).SetUpdate(true)
			.Play<TweenerCore<Vector3, Vector3, VectorOptions>>();
	}

	// Token: 0x06001B0B RID: 6923 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001B0B")]
	[Address(RVA = "0xE72BC0", Offset = "0xE71BC0", VA = "0x180E72BC0")]
	public void SetLabel(string value)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001B0C RID: 6924 RVA: 0x00041FB0 File Offset: 0x000401B0
	[Token(Token = "0x6001B0C")]
	[Address(RVA = "0xE72BA0", Offset = "0xE71BA0", VA = "0x180E72BA0")]
	public void SetFont(Font font)
	{
		this.label.font = font;
	}

	// Token: 0x06001B0D RID: 6925 RVA: 0x00041FD0 File Offset: 0x000401D0
	[Token(Token = "0x6001B0D")]
	[Address(RVA = "0xE72AB0", Offset = "0xE71AB0", VA = "0x180E72AB0")]
	public float GetWidth()
	{
		return this.label.preferredWidth * 1.25f;
	}

	// Token: 0x06001B0E RID: 6926 RVA: 0x00041FF4 File Offset: 0x000401F4
	[Token(Token = "0x6001B0E")]
	[Address(RVA = "0x41ED30", Offset = "0x41DD30", VA = "0x18041ED30")]
	public UILabelHandler()
	{
	}

	// Token: 0x0400251A RID: 9498
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x400251A")]
	[SerializeField]
	private Text label;
}
