2018-11-01 06:10:49 +00:00
|
|
|
|
using Microsoft.Xna.Framework;
|
|
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
2018-11-02 02:20:46 +00:00
|
|
|
|
using RhythmBullet.Zer01HD.Game.Screens.Transitions;
|
2018-09-15 19:05:14 +00:00
|
|
|
|
using RhythmBullet.Zer01HD.UI;
|
2018-11-02 03:02:25 +00:00
|
|
|
|
using RhythmBullet.Zer01HD.Utilities.ContentSystem;
|
2018-09-16 06:37:48 +00:00
|
|
|
|
using RhythmBullet.Zer01HD.Utilities.UI;
|
2018-11-11 20:44:30 +00:00
|
|
|
|
using RhythmBullet.Zer01HD.Utilities.ScreenSystem;
|
2018-09-15 19:05:14 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2018-11-04 05:01:17 +00:00
|
|
|
|
using System.Diagnostics;
|
2018-09-15 19:05:14 +00:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2018-11-12 06:33:40 +00:00
|
|
|
|
using RhythmBullet.Zer01HD.UI.Book;
|
2018-09-15 19:05:14 +00:00
|
|
|
|
|
2018-11-13 00:50:00 +00:00
|
|
|
|
namespace RhythmBullet.Zer01HD.Game.Screens.MainMenu
|
2018-09-15 19:05:14 +00:00
|
|
|
|
{
|
|
|
|
|
class MainScreen : Screen
|
|
|
|
|
{
|
2018-11-11 18:45:37 +00:00
|
|
|
|
FadeAwayTransition fat;
|
2018-11-02 03:02:25 +00:00
|
|
|
|
Texture2D background;
|
2018-11-12 06:33:40 +00:00
|
|
|
|
Book book;
|
2018-11-11 18:45:37 +00:00
|
|
|
|
public MainScreen(ContentSystem assets) : base(true)
|
2018-09-15 19:05:14 +00:00
|
|
|
|
{
|
2018-11-02 03:02:25 +00:00
|
|
|
|
background = assets.Get<Texture2D>("backgrounds/mainBG");
|
2018-11-13 00:34:11 +00:00
|
|
|
|
fat = new FadeAwayTransition(3f);
|
2018-11-12 06:33:40 +00:00
|
|
|
|
book = new Book(Camera);
|
2018-11-04 05:01:17 +00:00
|
|
|
|
}
|
2018-11-02 03:02:25 +00:00
|
|
|
|
|
|
|
|
|
public override void Show()
|
|
|
|
|
{
|
2018-11-11 18:45:37 +00:00
|
|
|
|
Transitions.Add(fat);
|
2018-11-02 03:02:25 +00:00
|
|
|
|
base.Show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Draw(SpriteBatch spriteBatch)
|
|
|
|
|
{
|
2018-11-12 06:33:40 +00:00
|
|
|
|
book.Draw(spriteBatch);
|
2018-11-02 03:02:25 +00:00
|
|
|
|
spriteBatch.Draw(background, ScreenSize, Color.White);
|
|
|
|
|
base.Draw(spriteBatch);
|
2018-09-15 19:05:14 +00:00
|
|
|
|
}
|
2018-11-12 06:33:40 +00:00
|
|
|
|
|
|
|
|
|
public override void Update(GameTime gameTime)
|
|
|
|
|
{
|
|
|
|
|
book.Update(gameTime);
|
|
|
|
|
base.Update(gameTime);
|
|
|
|
|
}
|
2018-09-15 19:05:14 +00:00
|
|
|
|
}
|
|
|
|
|
}
|