2019-01-15 02:06:17 +00:00
|
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
2018-12-04 05:05:54 +00:00
|
|
|
|
using RecrownedAthenaeum.UI.Book;
|
2018-12-05 05:37:05 +00:00
|
|
|
|
using RecrownedAthenaeum.ContentSystem;
|
|
|
|
|
using RecrownedAthenaeum.UI.Modular.Modules;
|
|
|
|
|
using RecrownedAthenaeum.UI.Modular.Modules.Interactive;
|
2018-11-13 00:50:00 +00:00
|
|
|
|
|
2018-12-04 05:05:54 +00:00
|
|
|
|
namespace RecrownedAthenaeum.Screens.MainMenu
|
2018-11-13 00:50:00 +00:00
|
|
|
|
{
|
|
|
|
|
internal class MainPage : Page
|
|
|
|
|
{
|
2018-11-15 07:22:35 +00:00
|
|
|
|
Image title;
|
2018-11-22 07:12:40 +00:00
|
|
|
|
TextButton playButton;
|
|
|
|
|
TextButton quitButton;
|
|
|
|
|
|
2018-11-18 05:27:05 +00:00
|
|
|
|
internal MainPage(ContentManagerController assets) : base(0, 0)
|
2018-11-13 00:50:00 +00:00
|
|
|
|
{
|
2018-11-15 07:22:35 +00:00
|
|
|
|
title = new Image(assets.Get<Texture2D>("title"));
|
|
|
|
|
AddModule(title);
|
2019-01-14 05:17:27 +00:00
|
|
|
|
|
2018-11-15 07:22:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void ApplySize(int width, int height)
|
|
|
|
|
{
|
|
|
|
|
title.Scale = (width - 40) / title.Texture.Width;
|
2018-11-21 00:12:02 +00:00
|
|
|
|
title.bounds.X = (int)((width - title.bounds.Width) / 2f);
|
|
|
|
|
title.bounds.Y = (int)((height - title.bounds.Height) / 2f);
|
2018-11-15 07:22:35 +00:00
|
|
|
|
base.ApplySize(width, height);
|
2018-11-13 01:54:33 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Draw(SpriteBatch batch)
|
|
|
|
|
{
|
|
|
|
|
base.Draw(batch);
|
2018-11-13 00:50:00 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|