code adapting to refactors of RA and minor cleanup
This commit is contained in:
parent
bfc72917f0
commit
104a759e9f
@ -55,7 +55,7 @@
|
|||||||
<Compile Include="Audio\MusicList.cs" />
|
<Compile Include="Audio\MusicList.cs" />
|
||||||
<Compile Include="Audio\SupportedFormats.cs" />
|
<Compile Include="Audio\SupportedFormats.cs" />
|
||||||
<Compile Include="Audio\TransparentSampleProvider.cs" />
|
<Compile Include="Audio\TransparentSampleProvider.cs" />
|
||||||
<Compile Include="Audio\Visualizer\HorizontalVisualizer.cs" />
|
<Compile Include="Audio\Visualizer\ReflectedHorizontalVisualizer.cs" />
|
||||||
<Compile Include="Screens\MainMenu\MainPage.cs" />
|
<Compile Include="Screens\MainMenu\MainPage.cs" />
|
||||||
<Compile Include="Screens\Transitions\FadeAwayTransition.cs" />
|
<Compile Include="Screens\Transitions\FadeAwayTransition.cs" />
|
||||||
<Compile Include="Screens\MainMenu\MainScreen.cs" />
|
<Compile Include="Screens\MainMenu\MainScreen.cs" />
|
||||||
|
@ -86,7 +86,7 @@ namespace RecrownedAthenaeum
|
|||||||
spriteBatch = new SpriteBatch(GraphicsDevice);
|
spriteBatch = new SpriteBatch(GraphicsDevice);
|
||||||
Camera = new Camera2D(graphics.GraphicsDevice);
|
Camera = new Camera2D(graphics.GraphicsDevice);
|
||||||
screenManager = new ScreenManager(graphics, Camera);
|
screenManager = new ScreenManager(graphics, Camera);
|
||||||
screenManager.RequireNextScreenEvent += RequireNextScreen;
|
screenManager.ShowFirstScreenEvent += ShowFirstScreen;
|
||||||
QueueContent();
|
QueueContent();
|
||||||
screenManager.Screen = new LoadingScreen(this, Content.Load<Texture2D>("RhythmBullet"), 0.7f);
|
screenManager.Screen = new LoadingScreen(this, Content.Load<Texture2D>("RhythmBullet"), 0.7f);
|
||||||
}
|
}
|
||||||
@ -153,7 +153,7 @@ namespace RecrownedAthenaeum
|
|||||||
resizing = true;
|
resizing = true;
|
||||||
assets.UnloadAll();
|
assets.UnloadAll();
|
||||||
QueueContent();
|
QueueContent();
|
||||||
screenManager.Resize(new LoadingScreen(this, Content.Load<Texture2D>("loading_ring"), 0.4f));
|
screenManager.Resize(new LoadingScreen(this, Content.Load<Texture2D>("loading_ring"), 0.4f, true));
|
||||||
SetUpCursor();
|
SetUpCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,7 +189,7 @@ namespace RecrownedAthenaeum
|
|||||||
Mouse.SetCursor(MouseCursor.FromTexture2D(currentCursorTexture, currentCursorTexture.Width / 2, currentCursorTexture.Height / 2));
|
Mouse.SetCursor(MouseCursor.FromTexture2D(currentCursorTexture, currentCursorTexture.Width / 2, currentCursorTexture.Height / 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RequireNextScreen(Screen Screen)
|
private void ShowFirstScreen(Screen Screen)
|
||||||
{
|
{
|
||||||
Screen.NextScreen = mainScreen;
|
Screen.NextScreen = mainScreen;
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@ namespace RecrownedAthenaeum.Screens.MainMenu
|
|||||||
{
|
{
|
||||||
title = new Image(assets.Get<Texture2D>("title"));
|
title = new Image(assets.Get<Texture2D>("title"));
|
||||||
AddModule(title);
|
AddModule(title);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void ApplySize(int width, int height)
|
public override void ApplySize(int width, int height)
|
||||||
|
Loading…
Reference in New Issue
Block a user