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

// Token: 0x02000124 RID: 292
[Token(Token = "0x2000124")]
public class StaffManager : GameSceneBase, ISceneMenuController
{
	// Token: 0x06000F62 RID: 3938 RVA: 0x00023DEC File Offset: 0x00021FEC
	[Token(Token = "0x6000F62")]
	[Address(RVA = "0x97EC10", Offset = "0x97DC10", VA = "0x18097EC10", Slot = "4")]
	public override void Enter()
	{
		int num = 0;
		Game.FadeOutBlackScreen((float)0, num);
		float ambienceVolume = Game.Config.volumeSettings.GetAmbienceVolume();
		VideoPlayer videoPlayer = this.player;
		float num2 = ambienceVolume * 0.6f;
		int num3 = 0;
		videoPlayer.SetDirectAudioVolume((ushort)num3, num2);
		VideoPlayer videoPlayer2 = this.player;
		VideoPlayer.EventHandler eventHandler = new VideoPlayer.EventHandler(this.PlayVideo);
		videoPlayer2.prepareCompleted += eventHandler;
		VideoPlayer videoPlayer3 = this.player;
		VideoPlayer.EventHandler eventHandler2 = new VideoPlayer.EventHandler(this.OnVideoEnd);
		videoPlayer3.loopPointReached += eventHandler2;
		VideoPlayer videoPlayer4 = this.player;
		string text = Application.streamingAssetsPath + "/Video/Staff.mp4";
		videoPlayer4.url = text;
		this.player.Prepare();
	}

	// Token: 0x06000F63 RID: 3939 RVA: 0x00023EA8 File Offset: 0x000220A8
	[Token(Token = "0x6000F63")]
	[Address(RVA = "0x97F470", Offset = "0x97E470", VA = "0x18097F470")]
	private void PrepareVideo()
	{
		VideoPlayer videoPlayer = this.player;
		string text = Application.streamingAssetsPath + "/Video/Staff.mp4";
		videoPlayer.url = text;
		this.player.Prepare();
	}

	// Token: 0x06000F64 RID: 3940 RVA: 0x00023EE8 File Offset: 0x000220E8
	[Token(Token = "0x6000F64")]
	[Address(RVA = "0x97F3F0", Offset = "0x97E3F0", VA = "0x18097F3F0")]
	private void PlayVideo(VideoPlayer source)
	{
		Game.SwitchGameplayInput();
		Game.BindSceneMenuController(this);
		this.canSkip = true;
		source.Play();
	}

	// Token: 0x06000F65 RID: 3941 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000F65")]
	[Address(RVA = "0x97EFA0", Offset = "0x97DFA0", VA = "0x18097EFA0", Slot = "5")]
	public void OpenSceneMenu()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000F66 RID: 3942 RVA: 0x00023F18 File Offset: 0x00022118
	[Token(Token = "0x6000F66")]
	[Address(RVA = "0x97EA70", Offset = "0x97DA70", VA = "0x18097EA70", Slot = "6")]
	public void CloseSceneMenu()
	{
		UIMessageBox uimessageBox = this.skipTip;
		int num = 0;
		if (!(uimessageBox == num))
		{
			Game.PlayCanvasSE(UICanvasSFX.Close);
			this.skipTip.ClearCloseEvent();
			this.skipTip.Close();
			this.skipTip = (ulong)0L;
			this.player.Play();
			this.canSkip = true;
			Game.SwitchGameplayInput();
			Image image = this.blackScreen;
			int num2 = 0;
			TweenerCore<Color, Color, ColorOptions> tweenerCore = DOTweenModuleUI.DOFade(image, (float)num2, 0.3f).SetEase((Ease)((uint)3)).Play<TweenerCore<Color, Color, ColorOptions>>();
		}
	}

	// Token: 0x06000F67 RID: 3943 RVA: 0x00023FA4 File Offset: 0x000221A4
	[Token(Token = "0x6000F67")]
	[Address(RVA = "0x97F4F0", Offset = "0x97E4F0", VA = "0x18097F4F0")]
	private void Resume()
	{
		this.skipTip.ClearCloseEvent();
		this.skipTip.Close();
		this.skipTip = (ulong)0L;
		this.player.Play();
		this.canSkip = true;
		Game.SwitchGameplayInput();
		Image image = this.blackScreen;
		int num = 0;
		TweenerCore<Color, Color, ColorOptions> tweenerCore = DOTweenModuleUI.DOFade(image, (float)num, 0.3f).SetEase((Ease)((uint)3)).Play<TweenerCore<Color, Color, ColorOptions>>();
	}

	// Token: 0x06000F68 RID: 3944 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000F68")]
	[Address(RVA = "0x97EEA0", Offset = "0x97DEA0", VA = "0x18097EEA0")]
	private void OnVideoEnd(VideoPlayer source)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000F69 RID: 3945 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000F69")]
	[Address(RVA = "0x97FA30", Offset = "0x97EA30", VA = "0x18097FA30")]
	private IEnumerator<float> WaitForMessageBox()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000F6A RID: 3946 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000F6A")]
	[Address(RVA = "0x97F5F0", Offset = "0x97E5F0", VA = "0x18097F5F0")]
	private void ShowBeatingMessageBox()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000F6B RID: 3947 RVA: 0x00024014 File Offset: 0x00022214
	[Token(Token = "0x6000F6B")]
	[Address(RVA = "0x97EDC0", Offset = "0x97DDC0", VA = "0x18097EDC0")]
	private void OnDisable()
	{
		VideoPlayer videoPlayer = this.player;
		VideoPlayer.EventHandler eventHandler = new VideoPlayer.EventHandler(this.PlayVideo);
		videoPlayer.prepareCompleted -= eventHandler;
		VideoPlayer videoPlayer2 = this.player;
		VideoPlayer.EventHandler eventHandler2 = new VideoPlayer.EventHandler(this.OnVideoEnd);
		videoPlayer2.loopPointReached -= eventHandler2;
	}

	// Token: 0x06000F6C RID: 3948 RVA: 0x00024060 File Offset: 0x00022260
	[Token(Token = "0x6000F6C")]
	[Address(RVA = "0x41ED30", Offset = "0x41DD30", VA = "0x18041ED30")]
	public StaffManager()
	{
	}

	// Token: 0x040019CD RID: 6605
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x40019CD")]
	[SerializeField]
	private VideoPlayer player;

	// Token: 0x040019CE RID: 6606
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x40019CE")]
	[SerializeField]
	private Image blackScreen;

	// Token: 0x040019CF RID: 6607
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x40019CF")]
	[SerializeField]
	private bool canSkip;

	// Token: 0x040019D0 RID: 6608
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x40019D0")]
	private UIMessageBox skipTip;
}
