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

// Token: 0x02000286 RID: 646
[Token(Token = "0x2000286")]
public class UILabelHandler : UIHandlerBase
{
	// Token: 0x060018DC RID: 6364 RVA: 0x0003C578 File Offset: 0x0003A778
	[Token(Token = "0x60018DC")]
	[Address(RVA = "0x1019A20", Offset = "0x1018820", VA = "0x181019A20", Slot = "8")]
	public override void OnSelect()
	{
		this.UpdateScale(1.25f);
		Action<UIHandlerBase> onSelectedHandler = this.onSelectedHandler;
		if (onSelectedHandler != 0)
		{
			onSelectedHandler(this);
			return;
		}
	}

	// Token: 0x060018DD RID: 6365 RVA: 0x0003C5A4 File Offset: 0x0003A7A4
	[Token(Token = "0x60018DD")]
	[Address(RVA = "0x10199C0", Offset = "0x10187C0", VA = "0x1810199C0", Slot = "9")]
	public override void OnDeselect()
	{
		this.UpdateScale(1f);
		Action<UIHandlerBase> onDeselectedHandler = this.onDeselectedHandler;
		if (onDeselectedHandler != 0)
		{
			onDeselectedHandler(this);
			return;
		}
	}

	// Token: 0x060018DE RID: 6366 RVA: 0x0003C5D0 File Offset: 0x0003A7D0
	[Token(Token = "0x60018DE")]
	[Address(RVA = "0x1019B40", Offset = "0x1018940", VA = "0x181019B40")]
	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: 0x060018DF RID: 6367 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60018DF")]
	[Address(RVA = "0x1019AA0", Offset = "0x10188A0", VA = "0x181019AA0")]
	public void SetLabel(string value)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060018E0 RID: 6368 RVA: 0x0003C60C File Offset: 0x0003A80C
	[Token(Token = "0x60018E0")]
	[Address(RVA = "0x1019A80", Offset = "0x1018880", VA = "0x181019A80")]
	public void SetFont(Font font)
	{
		this.label.font = font;
	}

	// Token: 0x060018E1 RID: 6369 RVA: 0x0003C62C File Offset: 0x0003A82C
	[Token(Token = "0x60018E1")]
	[Address(RVA = "0x1019990", Offset = "0x1018790", VA = "0x181019990")]
	public float GetWidth()
	{
		return this.label.preferredWidth * 1.25f;
	}

	// Token: 0x060018E2 RID: 6370 RVA: 0x0003C650 File Offset: 0x0003A850
	[Token(Token = "0x60018E2")]
	[Address(RVA = "0x3FBF80", Offset = "0x3FAD80", VA = "0x1803FBF80")]
	public UILabelHandler()
	{
	}

	// Token: 0x040022C7 RID: 8903
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x40022C7")]
	[SerializeField]
	private Text label;
}
