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

// Token: 0x02000292 RID: 658
[Token(Token = "0x2000292")]
public class UISceneLoading : MonoBehaviour
{
	// Token: 0x06001944 RID: 6468 RVA: 0x0003D3B8 File Offset: 0x0003B5B8
	[Token(Token = "0x6001944")]
	[Address(RVA = "0x189C6E0", Offset = "0x189B4E0", VA = "0x18189C6E0")]
	public void Init()
	{
		CanvasGroup canvasGroup = this.canvasGroup;
		int num = 0;
		canvasGroup.alpha = (float)num;
		GameObject gameObject = base.gameObject;
		int num2 = 0;
		gameObject.SetActive(num2 != 0);
	}

	// Token: 0x06001945 RID: 6469 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001945")]
	[Address(RVA = "0x189C420", Offset = "0x189B220", VA = "0x18189C420")]
	public void Appear(Action completionHandler)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001946 RID: 6470 RVA: 0x0003D3EC File Offset: 0x0003B5EC
	[Token(Token = "0x6001946")]
	[Address(RVA = "0x189C5A0", Offset = "0x189B3A0", VA = "0x18189C5A0")]
	public void Hide(Action completionHandler)
	{
		CanvasGroup canvasGroup = this.canvasGroup;
		int num = 0;
		TweenerCore<float, float, FloatOptions> tweenerCore = DOTweenModuleUI.DOFade(canvasGroup, (float)num, 0.3f).SetEase((Ease)((uint)15));
		TweenCallback tweenCallback = delegate
		{
			Action completionHandler2 = completionHandler;
			if (completionHandler2 != 0)
			{
				completionHandler2();
			}
			GameObject gameObject = this.gameObject;
			int num2 = 0;
			gameObject.SetActive(num2 != 0);
		};
		TweenerCore<float, float, FloatOptions> tweenerCore2 = tweenerCore.OnComplete(tweenCallback).Play<TweenerCore<float, float, FloatOptions>>();
	}

	// Token: 0x06001947 RID: 6471 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001947")]
	[Address(RVA = "0x189C7A0", Offset = "0x189B5A0", VA = "0x18189C7A0")]
	public void UpdateProgress(float progress)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001948 RID: 6472 RVA: 0x0003D450 File Offset: 0x0003B650
	[Token(Token = "0x6001948")]
	[Address(RVA = "0x189C730", Offset = "0x189B530", VA = "0x18189C730")]
	public void Localize(LocalizationData data)
	{
		string text = data.systemText.GetText(320);
		this.loadingText = text;
		GameFontPack fontPack = data.fontPack;
		Text text2 = this.progressLabel;
		Font light = fontPack.light;
		text2.font = light;
	}

	// Token: 0x06001949 RID: 6473 RVA: 0x0003D498 File Offset: 0x0003B698
	[Token(Token = "0x6001949")]
	[Address(RVA = "0x189C890", Offset = "0x189B690", VA = "0x18189C890")]
	public UISceneLoading()
	{
	}

	// Token: 0x04002309 RID: 8969
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002309")]
	[SerializeField]
	private CanvasGroup canvasGroup;

	// Token: 0x0400230A RID: 8970
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x400230A")]
	[SerializeField]
	private Image loadingBar;

	// Token: 0x0400230B RID: 8971
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x400230B")]
	[SerializeField]
	private Text progressLabel;

	// Token: 0x0400230C RID: 8972
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x400230C")]
	private string loadingText = "Now Loading...";
}
