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

// Token: 0x0200025B RID: 603
[Token(Token = "0x200025B")]
public class UIGameSaveDeleteHandler : UIHandlerBase
{
	// Token: 0x170000ED RID: 237
	// (get) Token: 0x0600173B RID: 5947 RVA: 0x000388BC File Offset: 0x00036ABC
	[Token(Token = "0x170000ED")]
	public Image Icon
	{
		[Token(Token = "0x600173B")]
		[Address(RVA = "0x31E4E0", Offset = "0x31D2E0", VA = "0x18031E4E0")]
		get
		{
			return this.icon;
		}
	}

	// Token: 0x0600173C RID: 5948 RVA: 0x000388D0 File Offset: 0x00036AD0
	[Token(Token = "0x600173C")]
	[Address(RVA = "0x762870", Offset = "0x761670", VA = "0x180762870")]
	public void EnableLabel(bool enable)
	{
		this.icon.enabled = enable;
	}

	// Token: 0x0600173D RID: 5949 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600173D")]
	[Address(RVA = "0x7629B0", Offset = "0x7617B0", VA = "0x1807629B0")]
	public void SetColor(Color color)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600173E RID: 5950 RVA: 0x000388F0 File Offset: 0x00036AF0
	[Token(Token = "0x600173E")]
	[Address(RVA = "0x6EC7B0", Offset = "0x6EB5B0", VA = "0x1806EC7B0")]
	public void UpdateScaleEffectFlag(bool enable)
	{
		this.canPlayScaleEffect = enable;
	}

	// Token: 0x0600173F RID: 5951 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600173F")]
	[Address(RVA = "0x762920", Offset = "0x761720", VA = "0x180762920", Slot = "8")]
	public override void OnSelect()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001740 RID: 5952 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001740")]
	[Address(RVA = "0x762890", Offset = "0x761690", VA = "0x180762890", Slot = "9")]
	public override void OnDeselect()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001741 RID: 5953 RVA: 0x00038904 File Offset: 0x00036B04
	[Token(Token = "0x6001741")]
	[Address(RVA = "0x7629F0", Offset = "0x7617F0", VA = "0x1807629F0")]
	private void UpdateSize(Vector2 size)
	{
		if (this.canPlayScaleEffect)
		{
			Image image = this.icon;
			int num = 0;
			RectTransform rectTransform = image.rectTransform;
			int num2 = 0;
			TweenerCore<Vector2, Vector2, VectorOptions> tweenerCore = DOTweenModuleUI.DOSizeDelta(rectTransform, num, 0.2f, num2 != 0).SetEase((Ease)((uint)3)).SetUpdate(true)
				.Play<TweenerCore<Vector2, Vector2, VectorOptions>>();
		}
	}

	// Token: 0x06001742 RID: 5954 RVA: 0x00038954 File Offset: 0x00036B54
	[Token(Token = "0x6001742")]
	[Address(RVA = "0x762AC0", Offset = "0x7618C0", VA = "0x180762AC0")]
	public UIGameSaveDeleteHandler()
	{
	}

	// Token: 0x04002191 RID: 8593
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x4002191")]
	[SerializeField]
	private Image icon;

	// Token: 0x04002192 RID: 8594
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4002192")]
	private bool canPlayScaleEffect = true;
}
