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

// Token: 0x02000225 RID: 549
[Token(Token = "0x2000225")]
public class TitleSceneManager : GameSceneBase, ISceneMenuController
{
	// Token: 0x06001526 RID: 5414 RVA: 0x0002FA90 File Offset: 0x0002DC90
	[Token(Token = "0x6001526")]
	[Address(RVA = "0x1300FF0", Offset = "0x12FFDF0", VA = "0x181300FF0", Slot = "4")]
	public override void Enter()
	{
		Game.onLanguageChanged += new Action(this.Localize);
		LocalizationData localizationData = Game.GetLocalizationData();
		Text text = this.pressAnyKeyLabel;
		string text2 = localizationData.systemText.GetText(280);
		text.text = text2;
		GameFontPack fontPack = localizationData.fontPack;
		Text text3 = this.pressAnyKeyLabel;
		Font medium = fontPack.medium;
		text3.font = medium;
		this.openingMenu.Localize(localizationData);
		this.bgm.Init();
		SceneBGMController sceneBGMController = this.bgm;
		int num = 0;
		int num2 = 0;
		sceneBGMController.PlayBGM(num2, (float)num);
		Game.GetUIStackingManager().Init(UIStackingManager.UIStackingCommand.Close);
		this.openingMenu.Init();
		UIOpeningMenu uiopeningMenu = this.openingMenu;
		uiopeningMenu.enableScaleEffect = false;
		Game.SwitchUIControlInput();
		this.WaitForAnyKeyDown();
		UnityEngine.Object.FindObjectOfType<GameVolumeController>().Init();
		int num3 = 0;
		Game.FadeOutBlackScreen(1f, num3);
	}

	// Token: 0x06001527 RID: 5415 RVA: 0x0002FB80 File Offset: 0x0002DD80
	[Token(Token = "0x6001527")]
	[Address(RVA = "0x1301230", Offset = "0x1300030", VA = "0x181301230")]
	private void Localize(LocalizationData data)
	{
		Text text = this.pressAnyKeyLabel;
		string text2 = data.systemText.GetText(280);
		text.text = text2;
		GameFontPack fontPack = data.fontPack;
		Text text3 = this.pressAnyKeyLabel;
		Font medium = fontPack.medium;
		text3.font = medium;
		((IUIController)this.openingMenu).SwitchLeftward();
	}

	// Token: 0x06001528 RID: 5416 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001528")]
	[Address(RVA = "0x13016D0", Offset = "0x13004D0", VA = "0x1813016D0")]
	private void WaitForAnyKeyDown()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001529 RID: 5417 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001529")]
	[Address(RVA = "0x13012D0", Offset = "0x13000D0", VA = "0x1813012D0")]
	private void OnAnyKeyDown()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600152A RID: 5418 RVA: 0x0002FBDC File Offset: 0x0002DDDC
	[Token(Token = "0x600152A")]
	[Address(RVA = "0x1301610", Offset = "0x1300410", VA = "0x181301610")]
	private void OpenMenuUI()
	{
		UIOpeningMenu uiopeningMenu = this.openingMenu;
		Action action = new Action(this.WaitForAnyKeyDown);
		uiopeningMenu.Open(action);
		Game.BindSceneMenuController(this);
	}

	// Token: 0x0600152B RID: 5419 RVA: 0x0002FC10 File Offset: 0x0002DE10
	[Token(Token = "0x600152B")]
	[Address(RVA = "0x1301560", Offset = "0x1300360", VA = "0x181301560")]
	private void OnDestroy()
	{
		Game.onLanguageChanged -= new Action(this.Localize);
	}

	// Token: 0x0600152C RID: 5420 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600152C")]
	[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00", Slot = "5")]
	public void OpenSceneMenu()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600152D RID: 5421 RVA: 0x0002FC30 File Offset: 0x0002DE30
	[Token(Token = "0x600152D")]
	[Address(RVA = "0x1300FD0", Offset = "0x12FFDD0", VA = "0x181300FD0", Slot = "6")]
	public void CloseSceneMenu()
	{
		this.openingMenu.OnSceneMenuClosed();
	}

	// Token: 0x0600152E RID: 5422 RVA: 0x0002FC50 File Offset: 0x0002DE50
	[Token(Token = "0x600152E")]
	[Address(RVA = "0x3FBF80", Offset = "0x3FAD80", VA = "0x1803FBF80")]
	public TitleSceneManager()
	{
	}

	// Token: 0x04002088 RID: 8328
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002088")]
	[SerializeField]
	private Text pressAnyKeyLabel;

	// Token: 0x04002089 RID: 8329
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002089")]
	[SerializeField]
	private Image pressAnyKeyEffect;

	// Token: 0x0400208A RID: 8330
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x400208A")]
	[SerializeField]
	private bool waitForAnyKey;

	// Token: 0x0400208B RID: 8331
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x400208B")]
	[SerializeField]
	private UIOpeningMenu openingMenu;

	// Token: 0x0400208C RID: 8332
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x400208C")]
	[SerializeField]
	private SceneBGMController bgm;

	// Token: 0x0400208D RID: 8333
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x400208D")]
	private Sequence pressAnyKeySequence;
}
