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

// Token: 0x02000288 RID: 648
[Token(Token = "0x2000288")]
public class UIKeyBindingHandler : UIHandlerBase
{
	// Token: 0x170000ED RID: 237
	// (get) Token: 0x06001842 RID: 6210 RVA: 0x000382E4 File Offset: 0x000364E4
	[Token(Token = "0x170000ED")]
	public bool IsUnmodifiable
	{
		[Token(Token = "0x6001842")]
		[Address(RVA = "0x96BE70", Offset = "0x96AE70", VA = "0x18096BE70")]
		get
		{
			return this.isUnmodifiable;
		}
	}

	// Token: 0x06001843 RID: 6211 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001843")]
	[Address(RVA = "0xE71C30", Offset = "0xE70C30", VA = "0x180E71C30")]
	public void Init(bool isGamepad)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001844 RID: 6212 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001844")]
	[Address(RVA = "0xE71F40", Offset = "0xE70F40", VA = "0x180E71F40")]
	public void UpdateIcon(bool isGamepad)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001845 RID: 6213 RVA: 0x000382F8 File Offset: 0x000364F8
	[Token(Token = "0x6001845")]
	[Address(RVA = "0xE71E20", Offset = "0xE70E20", VA = "0x180E71E20", 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: 0x06001846 RID: 6214 RVA: 0x00038340 File Offset: 0x00036540
	[Token(Token = "0x6001846")]
	[Address(RVA = "0xE71D60", Offset = "0xE70D60", VA = "0x180E71D60", 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: 0x06001847 RID: 6215 RVA: 0x00038388 File Offset: 0x00036588
	[Token(Token = "0x6001847")]
	[Address(RVA = "0xCB4FE0", Offset = "0xCB3FE0", VA = "0x180CB4FE0")]
	public void SetLabel(string text)
	{
		((ICanvasElement)this.label).GraphicUpdateComplete();
	}

	// Token: 0x06001848 RID: 6216 RVA: 0x000383A8 File Offset: 0x000365A8
	[Token(Token = "0x6001848")]
	[Address(RVA = "0xE71EE0", Offset = "0xE70EE0", VA = "0x180E71EE0")]
	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: 0x06001849 RID: 6217 RVA: 0x000383E8 File Offset: 0x000365E8
	[Token(Token = "0x6001849")]
	[Address(RVA = "0x41ED30", Offset = "0x41DD30", VA = "0x18041ED30")]
	public UIKeyBindingHandler()
	{
	}

	// Token: 0x0400234F RID: 9039
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x400234F")]
	[SerializeField]
	private Text label;

	// Token: 0x04002350 RID: 9040
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4002350")]
	[SerializeField]
	private RectTransform iconRoot;

	// Token: 0x04002351 RID: 9041
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x4002351")]
	[SerializeField]
	private Image icon;

	// Token: 0x04002352 RID: 9042
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4002352")]
	[SerializeField]
	private Text value;

	// Token: 0x04002353 RID: 9043
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x4002353")]
	[SerializeField]
	private bool isUnmodifiable;
}
