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: 0x0200023E RID: 574
[Token(Token = "0x200023E")]
public class UIKeyBindingHandler : UIHandlerBase
{
	// Token: 0x170000DE RID: 222
	// (get) Token: 0x06001623 RID: 5667 RVA: 0x000331F8 File Offset: 0x000313F8
	[Token(Token = "0x170000DE")]
	public bool IsUnmodifiable
	{
		[Token(Token = "0x6001623")]
		[Address(RVA = "0x8E98D0", Offset = "0x8E86D0", VA = "0x1808E98D0")]
		get
		{
			return this.isUnmodifiable;
		}
	}

	// Token: 0x06001624 RID: 5668 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001624")]
	[Address(RVA = "0x1018AE0", Offset = "0x10178E0", VA = "0x181018AE0")]
	public void Init(bool isGamepad)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001625 RID: 5669 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001625")]
	[Address(RVA = "0x1018E20", Offset = "0x1017C20", VA = "0x181018E20")]
	public void UpdateIcon(bool isGamepad)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001626 RID: 5670 RVA: 0x0003320C File Offset: 0x0003140C
	[Token(Token = "0x6001626")]
	[Address(RVA = "0x1018CD0", Offset = "0x1017AD0", VA = "0x181018CD0", Slot = "8")]
	public override void OnSelect()
	{
		TweenerCore<Vector3, Vector3, VectorOptions> tweenerCore = ShortcutExtensions.DOScale(this.iconRoot, 1.25f, 0.2f).SetEase((Ease)((uint)3)).SetUpdate(true)
			.Play<TweenerCore<Vector3, Vector3, VectorOptions>>();
		Action<UIHandlerBase> onSelectedHandler = this.onSelectedHandler;
		if (onSelectedHandler != 0)
		{
			onSelectedHandler(this);
			return;
		}
	}

	// Token: 0x06001627 RID: 5671 RVA: 0x00033254 File Offset: 0x00031454
	[Token(Token = "0x6001627")]
	[Address(RVA = "0x1018C10", Offset = "0x1017A10", VA = "0x181018C10", Slot = "9")]
	public override void OnDeselect()
	{
		TweenerCore<Vector3, Vector3, VectorOptions> tweenerCore = ShortcutExtensions.DOScale(this.iconRoot, 1f, 0.2f).SetEase((Ease)((uint)3)).SetUpdate(true)
			.Play<TweenerCore<Vector3, Vector3, VectorOptions>>();
		Action<UIHandlerBase> onDeselectedHandler = this.onDeselectedHandler;
		if (onDeselectedHandler != 0)
		{
			onDeselectedHandler(this);
			return;
		}
	}

	// Token: 0x06001628 RID: 5672 RVA: 0x0003329C File Offset: 0x0003149C
	[Token(Token = "0x6001628")]
	[Address(RVA = "0x1018DF0", Offset = "0x1017BF0", VA = "0x181018DF0")]
	public void SetLabel(string text)
	{
		bool dtdValidation = ((IDtdParserAdapterWithValidation)this.label).DtdValidation;
	}

	// Token: 0x06001629 RID: 5673 RVA: 0x000332BC File Offset: 0x000314BC
	[Token(Token = "0x6001629")]
	[Address(RVA = "0x1018D90", Offset = "0x1017B90", VA = "0x181018D90")]
	public void SetFont(GameFontPack fontPack)
	{
		Text text = this.label;
		Font regular = fontPack.regular;
		text.font = regular;
		Text text2 = this.value;
		Font regular2 = fontPack.regular;
		text2.font = regular2;
	}

	// Token: 0x0600162A RID: 5674 RVA: 0x000332FC File Offset: 0x000314FC
	[Token(Token = "0x600162A")]
	[Address(RVA = "0x3FBF80", Offset = "0x3FAD80", VA = "0x1803FBF80")]
	public UIKeyBindingHandler()
	{
	}

	// Token: 0x04002102 RID: 8450
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x4002102")]
	[SerializeField]
	private Text label;

	// Token: 0x04002103 RID: 8451
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4002103")]
	[SerializeField]
	private RectTransform iconRoot;

	// Token: 0x04002104 RID: 8452
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x4002104")]
	[SerializeField]
	private Image icon;

	// Token: 0x04002105 RID: 8453
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4002105")]
	[SerializeField]
	private Text value;

	// Token: 0x04002106 RID: 8454
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x4002106")]
	[SerializeField]
	private bool isUnmodifiable;
}
