loading screen now has the option to rotate image; change in how transitions are handled
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using RhythmBullet.Zer01HD.Game.Screens.Transitions;
|
||||
using RhythmBullet.Zer01HD.UI;
|
||||
using RhythmBullet.Zer01HD.Utilities.UI;
|
||||
using System;
|
||||
@@ -12,14 +13,16 @@ namespace RhythmBullet.Zer01HD.Game.Screens
|
||||
{
|
||||
class MainScreen : Screen
|
||||
{
|
||||
FadeInTransition fadeInTransition;
|
||||
|
||||
public MainScreen() : base(true)
|
||||
public MainScreen(GraphicsDevice graphicsDevice, Color transitionFromColor) : base(true)
|
||||
{
|
||||
|
||||
fadeInTransition = new FadeInTransition(graphicsDevice, transitionFromColor, ScreenSize);
|
||||
}
|
||||
|
||||
public override void EnteringTransition(double delta, bool assetsLoaded, ref Color backgroundColor)
|
||||
{
|
||||
fadeInTransition.Fade((float)delta);
|
||||
base.EnteringTransition(delta, assetsLoaded, ref backgroundColor);
|
||||
}
|
||||
}
|
||||
|
@@ -28,7 +28,7 @@ namespace RhythmBullet.Zer01HD.Game.Screens.Transitions
|
||||
}
|
||||
|
||||
|
||||
internal void Fade(SpriteBatch batch, float deltaf)
|
||||
internal bool Fade(float deltaf)
|
||||
{
|
||||
if (progR > 0 || progG > 0 || progB > 0)
|
||||
{
|
||||
@@ -53,8 +53,17 @@ namespace RhythmBullet.Zer01HD.Game.Screens.Transitions
|
||||
color.G = (byte)progG;
|
||||
color.B = (byte)progB;
|
||||
color.A = (byte)progA;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
internal void Draw(SpriteBatch batch)
|
||||
{
|
||||
if (curtain != null)
|
||||
{
|
||||
batch.Draw(curtain, curtainSize, color);
|
||||
}
|
||||
batch.Draw(curtain, curtainSize, color);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
Reference in New Issue
Block a user