36 lines
1017 B
C#
Raw Normal View History

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