began main page with reorganization.

This commit is contained in:
2018-11-12 18:50:00 -06:00
parent b1e2721850
commit 51f13b1578
5 changed files with 27 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
using Microsoft.Xna.Framework.Graphics;
using RhythmBullet.Zer01HD.UI.Book;
using RhythmBullet.Zer01HD.Utilities.ContentSystem;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RhythmBullet.Zer01HD.Game.Screens.MainMenu
{
internal class MainPage : Page
{
internal MainPage(ContentSystem assets, GraphicsDevice graphicsDevice) : base(0, 0, graphicsDevice)
{
assets.Get<Texture2D>("title");
}
}
}

View File

@@ -13,7 +13,7 @@ using System.Text;
using System.Threading.Tasks;
using RhythmBullet.Zer01HD.UI.Book;
namespace RhythmBullet.Zer01HD.Game.Screens
namespace RhythmBullet.Zer01HD.Game.Screens.MainMenu
{
class MainScreen : Screen
{

View File

@@ -12,12 +12,14 @@ namespace RhythmBullet.Zer01HD.UI.Book
class Page : UIModuleGroup
{
private readonly int pageX, pageY;
private GraphicsDevice graphicsDevice;
public Page(int pageX, int pageY, int width, int height)
public Page(int pageX, int pageY, GraphicsDevice graphicsDevice)
{
this.graphicsDevice = graphicsDevice;
this.pageX = pageX;
this.pageY = pageY;
ApplySize(width, height);
ApplySize(graphicsDevice.Viewport.Width, graphicsDevice.Viewport.Height);
}
public virtual void ApplySize(int width, int height)