using System;
using Cpp2IlInjected;
using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x02000309 RID: 777
[Token(Token = "0x2000309")]
public class UIInteractionPrompt : MonoBehaviour
{
	// Token: 0x06001C89 RID: 7305 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001C89")]
	[Address(RVA = "0xE6B1B0", Offset = "0xE6A1B0", VA = "0x180E6B1B0")]
	public void Init()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001C8A RID: 7306 RVA: 0x00044914 File Offset: 0x00042B14
	[Token(Token = "0x6001C8A")]
	[Address(RVA = "0xE6B0B0", Offset = "0xE6A0B0", VA = "0x180E6B0B0")]
	public void Appear(string source)
	{
		this.content.text = source;
		if (this.fadeOutProcessor.IsPlaying())
		{
			this.fadeOutProcessor.Complete();
		}
		this.fadeInProcessor.Restart(true, -1f);
	}

	// Token: 0x06001C8B RID: 7307 RVA: 0x00044960 File Offset: 0x00042B60
	[Token(Token = "0x6001C8B")]
	[Address(RVA = "0xE6B140", Offset = "0xE6A140", VA = "0x180E6B140")]
	public void Hide()
	{
		if (base.gameObject.activeSelf)
		{
			if (this.fadeInProcessor.IsPlaying())
			{
				this.fadeInProcessor.Complete();
			}
			this.fadeOutProcessor.Restart(true, -1f);
			return;
		}
	}

	// Token: 0x06001C8C RID: 7308 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001C8C")]
	[Address(RVA = "0xE6B5A0", Offset = "0xE6A5A0", VA = "0x180E6B5A0")]
	public void UpdateInputIcon(ControllerDevice device)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001C8D RID: 7309 RVA: 0x000449AC File Offset: 0x00042BAC
	[Token(Token = "0x6001C8D")]
	[Address(RVA = "0xE6B540", Offset = "0xE6A540", VA = "0x180E6B540")]
	public void SetFont(GameFontPack fontPack)
	{
		Text text = this.content;
		Font medium = fontPack.medium;
		text.font = medium;
		Text label = this.inputIcon.label;
		Font regular = fontPack.regular;
		label.font = regular;
	}

	// Token: 0x06001C8E RID: 7310 RVA: 0x000449F0 File Offset: 0x00042BF0
	[Token(Token = "0x6001C8E")]
	[Address(RVA = "0xE6B110", Offset = "0xE6A110", VA = "0x180E6B110")]
	public void Dispose()
	{
		Sequence sequence = this.fadeInProcessor;
		int num = 0;
		sequence.Kill(num != 0);
		Sequence sequence2 = this.fadeOutProcessor;
		int num2 = 0;
		sequence2.Kill(num2 != 0);
	}

	// Token: 0x06001C8F RID: 7311 RVA: 0x00044A20 File Offset: 0x00042C20
	[Token(Token = "0x6001C8F")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public UIInteractionPrompt()
	{
	}

	// Token: 0x0400269D RID: 9885
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x400269D")]
	[SerializeField]
	private CanvasGroup canvasGroup;

	// Token: 0x0400269E RID: 9886
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x400269E")]
	[SerializeField]
	private RectTransform rectTransform;

	// Token: 0x0400269F RID: 9887
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x400269F")]
	[SerializeField]
	private UIInputIcon inputIcon;

	// Token: 0x040026A0 RID: 9888
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x40026A0")]
	[SerializeField]
	private Text content;

	// Token: 0x040026A1 RID: 9889
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x40026A1")]
	private Sequence fadeInProcessor;

	// Token: 0x040026A2 RID: 9890
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x40026A2")]
	private Sequence fadeOutProcessor;
}
