rhythmbullet/RhythmBullet/Zer01HD/Game/Screens/MainMenu/MainPage.cs

23 lines
634 B
C#

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using RhythmBullet.Zer01HD.UI.Book;
using RhythmBullet.Zer01HD.Utilities.ContentSystem;
namespace RhythmBullet.Zer01HD.Game.Screens.MainMenu
{
internal class MainPage : Page
{
Texture2D title;
internal MainPage(ContentSystem assets, GraphicsDevice graphicsDevice) : base(0, 0, graphicsDevice)
{
title = assets.Get<Texture2D>("title");
}
public override void Draw(SpriteBatch batch)
{
batch.Draw(title, title.Bounds, Color.White);
base.Draw(batch);
}
}
}