rhythmbullet/RhythmBullet/Zer01HD/Utilities/UI/Screen.cs

79 lines
1.5 KiB
C#
Raw Normal View History

2018-09-11 05:05:34 +00:00
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RhythmBullet.Zer01HD.Utilities.UI
2018-09-11 05:05:34 +00:00
{
public enum ScreenState { EnterTransition, ExitTransition, Normal }
public class Screen
2018-09-11 05:05:34 +00:00
{
public Rectangle ScreenSize;
ScreenState state;
public Screen(bool useEnterTransition = false)
{
state = useEnterTransition ? ScreenState.EnterTransition : ScreenState.Normal;
}
public virtual void Update(GameTime gameTime)
2018-09-11 05:05:34 +00:00
{
2018-09-11 05:05:34 +00:00
}
public virtual void Draw(SpriteBatch spriteBatch)
2018-09-11 05:05:34 +00:00
{
}
public virtual void EnteringTransition(double delta, bool assetsLoaded, ref Color backgroundColor)
{
}
public virtual bool ExitingTransition(double delta, bool assetsLoaded, ref Color backgroundColor)
{
return true;
}
public virtual void Show()
2018-09-11 05:05:34 +00:00
{
}
public virtual void Hide()
2018-09-11 05:05:34 +00:00
{
}
2018-10-30 23:29:54 +00:00
public virtual void AssetLoadStateChange(bool state)
{
}
public ScreenState State
{
get
{
return state;
}
}
public void DoneEnterTransition()
{
state = ScreenState.Normal;
}
public void StartExitTransition()
{
state = ScreenState.ExitTransition;
}
2018-09-11 05:05:34 +00:00
}
}