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

// Token: 0x0200028F RID: 655
[Token(Token = "0x200028F")]
public class UIValuablesHandler : UIHandlerBase
{
	// Token: 0x1700010C RID: 268
	// (get) Token: 0x06001931 RID: 6449 RVA: 0x0003D120 File Offset: 0x0003B320
	[Token(Token = "0x1700010C")]
	public bool IsUnlocked
	{
		[Token(Token = "0x6001931")]
		[Address(RVA = "0x8B57E0", Offset = "0x8B45E0", VA = "0x1808B57E0")]
		get
		{
			return this.isUnlocked;
		}
	}

	// Token: 0x06001932 RID: 6450 RVA: 0x0003D134 File Offset: 0x0003B334
	[Token(Token = "0x6001932")]
	[Address(RVA = "0x8B5280", Offset = "0x8B4080", VA = "0x1808B5280", 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: 0x06001933 RID: 6451 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001933")]
	[Address(RVA = "0x8B5160", Offset = "0x8B3F60", VA = "0x1808B5160", Slot = "9")]
	public override void OnDeselect()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001934 RID: 6452 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001934")]
	[Address(RVA = "0x8B53A0", Offset = "0x8B41A0", VA = "0x1808B53A0")]
	public void SetIndexLabel(int idx)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001935 RID: 6453 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001935")]
	[Address(RVA = "0x8B54A0", Offset = "0x8B42A0", VA = "0x1808B54A0")]
	public void SetLockState(bool isLocked)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001936 RID: 6454 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001936")]
	[Address(RVA = "0x8B5580", Offset = "0x8B4380", VA = "0x1808B5580")]
	public void SetNewPropState(bool isNewProp)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001937 RID: 6455 RVA: 0x0003D188 File Offset: 0x0003B388
	[Token(Token = "0x6001937")]
	[Address(RVA = "0x8B5430", Offset = "0x8B4230", VA = "0x1808B5430")]
	public void SetLabel(string value)
	{
		bool dtdValidation = ((IDtdParserAdapterWithValidation)this.contentlabel).DtdValidation;
	}

	// Token: 0x06001938 RID: 6456 RVA: 0x0003D1A8 File Offset: 0x0003B3A8
	[Token(Token = "0x6001938")]
	[Address(RVA = "0x8B5350", Offset = "0x8B4150", VA = "0x1808B5350")]
	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: 0x06001939 RID: 6457 RVA: 0x0003D1E8 File Offset: 0x0003B3E8
	[Token(Token = "0x6001939")]
	[Address(RVA = "0x8B57D0", Offset = "0x8B45D0", VA = "0x1808B57D0")]
	public UIValuablesHandler()
	{
	}

	// Token: 0x040022FC RID: 8956
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x40022FC")]
	[SerializeField]
	private Text contentlabel;

	// Token: 0x040022FD RID: 8957
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x40022FD")]
	[SerializeField]
	private Text indexLabel;

	// Token: 0x040022FE RID: 8958
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x40022FE")]
	[SerializeField]
	private Graphic[] childGraphics;

	// Token: 0x040022FF RID: 8959
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x40022FF")]
	private bool isUnlocked = true;
}
