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

// Token: 0x020002CF RID: 719
[Token(Token = "0x20002CF")]
public class UIDialogueLabelHandler : UIHandlerBase
{
	// Token: 0x06001AF7 RID: 6903 RVA: 0x00041C70 File Offset: 0x0003FE70
	[Token(Token = "0x6001AF7")]
	[Address(RVA = "0x19DAB00", Offset = "0x19D9B00", VA = "0x1819DAB00", Slot = "8")]
	public override void OnSelect()
	{
		this.UpdateScale(1.17f);
		Action<UIHandlerBase> onSelectedHandler = this.onSelectedHandler;
		if (onSelectedHandler != 0)
		{
			onSelectedHandler(this);
			return;
		}
	}

	// Token: 0x06001AF8 RID: 6904 RVA: 0x00041C9C File Offset: 0x0003FE9C
	[Token(Token = "0x6001AF8")]
	[Address(RVA = "0x19DAAA0", Offset = "0x19D9AA0", VA = "0x1819DAAA0", Slot = "9")]
	public override void OnDeselect()
	{
		this.UpdateScale(1f);
		Action<UIHandlerBase> onDeselectedHandler = this.onDeselectedHandler;
		if (onDeselectedHandler != 0)
		{
			onDeselectedHandler(this);
			return;
		}
	}

	// Token: 0x06001AF9 RID: 6905 RVA: 0x00041CC8 File Offset: 0x0003FEC8
	[Token(Token = "0x6001AF9")]
	[Address(RVA = "0x19DAC40", Offset = "0x19D9C40", VA = "0x1819DAC40")]
	private void UpdateScale(float scale)
	{
		TweenerCore<Vector3, Vector3, VectorOptions> tweenerCore = ShortcutExtensions.DOScale(this.labelImage.rectTransform, scale, 0.2f).SetEase((Ease)((uint)3)).SetUpdate(true)
			.Play<TweenerCore<Vector3, Vector3, VectorOptions>>();
		TweenerCore<Vector3, Vector3, VectorOptions> tweenerCore2 = ShortcutExtensions.DOScale(this.labelText.rectTransform, scale, 0.2f).SetEase((Ease)((uint)3)).SetUpdate(true)
			.Play<TweenerCore<Vector3, Vector3, VectorOptions>>();
	}

	// Token: 0x06001AFA RID: 6906 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001AFA")]
	[Address(RVA = "0x19DABA0", Offset = "0x19D9BA0", VA = "0x1819DABA0")]
	public void SetLabelText(string value)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001AFB RID: 6907 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001AFB")]
	[Address(RVA = "0x19DAA50", Offset = "0x19D9A50", VA = "0x1819DAA50")]
	public string GetLabelText()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001AFC RID: 6908 RVA: 0x00041D30 File Offset: 0x0003FF30
	[Token(Token = "0x6001AFC")]
	[Address(RVA = "0x19DAB80", Offset = "0x19D9B80", VA = "0x1819DAB80")]
	public void SetLabelImage(Sprite value)
	{
		this.labelImage.sprite = value;
	}

	// Token: 0x06001AFD RID: 6909 RVA: 0x00041D50 File Offset: 0x0003FF50
	[Token(Token = "0x6001AFD")]
	[Address(RVA = "0x19DAB60", Offset = "0x19D9B60", VA = "0x1819DAB60")]
	public void SetFont(Font font)
	{
		this.labelText.font = font;
	}

	// Token: 0x06001AFE RID: 6910 RVA: 0x00041D70 File Offset: 0x0003FF70
	[Token(Token = "0x6001AFE")]
	[Address(RVA = "0x19DAA80", Offset = "0x19D9A80", VA = "0x1819DAA80")]
	public Vector2 GetPosition()
	{
		return this.rectTransform.anchoredPosition;
	}

	// Token: 0x06001AFF RID: 6911 RVA: 0x00041D90 File Offset: 0x0003FF90
	[Token(Token = "0x6001AFF")]
	[Address(RVA = "0x41ED30", Offset = "0x41DD30", VA = "0x18041ED30")]
	public UIDialogueLabelHandler()
	{
	}

	// Token: 0x04002512 RID: 9490
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x4002512")]
	[SerializeField]
	private Image labelImage;

	// Token: 0x04002513 RID: 9491
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4002513")]
	[SerializeField]
	private Text labelText;
}
