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

// Token: 0x020002DA RID: 730
[Token(Token = "0x20002DA")]
public class UIValuablesHandler : UIHandlerBase
{
	// Token: 0x1700011C RID: 284
	// (get) Token: 0x06001B5E RID: 7006 RVA: 0x00042B2C File Offset: 0x00040D2C
	[Token(Token = "0x1700011C")]
	public bool IsUnlocked
	{
		[Token(Token = "0x6001B5E")]
		[Address(RVA = "0x9D5530", Offset = "0x9D4530", VA = "0x1809D5530")]
		get
		{
			return this.isUnlocked;
		}
	}

	// Token: 0x06001B5F RID: 7007 RVA: 0x00042B40 File Offset: 0x00040D40
	[Token(Token = "0x6001B5F")]
	[Address(RVA = "0xCBFAF0", Offset = "0xCBEAF0", VA = "0x180CBFAF0", Slot = "8")]
	public override void OnSelect()
	{
		Action<UIHandlerBase> onSelectedHandler = this.onSelectedHandler;
		if (onSelectedHandler != 0)
		{
			onSelectedHandler(this);
		}
		if (this.isUnlocked)
		{
			TweenerCore<Vector3, Vector3, VectorOptions> tweenerCore = ShortcutExtensions.DOScale(this.rectTransform, 1.1f, 0.13f).SetEase((Ease)((uint)3)).SetUpdate(true)
				.Play<TweenerCore<Vector3, Vector3, VectorOptions>>();
			return;
		}
	}

	// Token: 0x06001B60 RID: 7008 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001B60")]
	[Address(RVA = "0xCBF9D0", Offset = "0xCBE9D0", VA = "0x180CBF9D0", Slot = "9")]
	public override void OnDeselect()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001B61 RID: 7009 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001B61")]
	[Address(RVA = "0xCBFC10", Offset = "0xCBEC10", VA = "0x180CBFC10")]
	public void SetIndexLabel(int idx)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001B62 RID: 7010 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001B62")]
	[Address(RVA = "0xCBFD10", Offset = "0xCBED10", VA = "0x180CBFD10")]
	public void SetLockState(bool isLocked)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001B63 RID: 7011 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001B63")]
	[Address(RVA = "0xCBFDF0", Offset = "0xCBEDF0", VA = "0x180CBFDF0")]
	public void SetNewPropState(bool isNewProp)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001B64 RID: 7012 RVA: 0x00042B94 File Offset: 0x00040D94
	[Token(Token = "0x6001B64")]
	[Address(RVA = "0xCBFCA0", Offset = "0xCBECA0", VA = "0x180CBFCA0")]
	public void SetLabel(string value)
	{
		((ICanvasElement)this.contentlabel).GraphicUpdateComplete();
	}

	// Token: 0x06001B65 RID: 7013 RVA: 0x00042BB4 File Offset: 0x00040DB4
	[Token(Token = "0x6001B65")]
	[Address(RVA = "0xCBFBC0", Offset = "0xCBEBC0", VA = "0x180CBFBC0")]
	public void SetFont(GameFontPack fontPack)
	{
		Text text = this.indexLabel;
		Font regular = fontPack.regular;
		text.font = regular;
		Text text2 = this.contentlabel;
		Font regular2 = fontPack.regular;
		text2.font = regular2;
	}

	// Token: 0x06001B66 RID: 7014 RVA: 0x00042BF4 File Offset: 0x00040DF4
	[Token(Token = "0x6001B66")]
	[Address(RVA = "0xCC0040", Offset = "0xCBF040", VA = "0x180CC0040")]
	public UIValuablesHandler()
	{
	}

	// Token: 0x0400254F RID: 9551
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x400254F")]
	[SerializeField]
	private Text contentlabel;

	// Token: 0x04002550 RID: 9552
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4002550")]
	[SerializeField]
	private Text indexLabel;

	// Token: 0x04002551 RID: 9553
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x4002551")]
	[SerializeField]
	private Graphic[] childGraphics;

	// Token: 0x04002552 RID: 9554
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4002552")]
	private bool isUnlocked = true;
}
