Began work on input.

This commit is contained in:
2019-03-09 00:50:46 -06:00
parent b20ef57991
commit 97a65abec7
4 changed files with 22 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ namespace RhythmBullet.Screens.MainMenu
playButton.situation.Height = (int)(0.05f * title.Boundaries.Width);
playButton.CenterOrigin();
playButton.CenterHorizontally(Boundaries);
playButton.situation.Y = (int)playButton.origin.Y + title.Boundaries.Y + title.Boundaries.Height + 30;
playButton.situation.Y = (int)playButton.origin.Y + title.Boundaries.Y + title.Boundaries.Height + 60;
quitButton.situation.Width = (int)(0.3f * title.Boundaries.Width);
quitButton.situation.Height = (int)(0.05f * title.Boundaries.Width);

View File

@@ -2,6 +2,7 @@
using Microsoft.Xna.Framework.Graphics;
using RecrownedAthenaeum.Camera;
using RecrownedAthenaeum.ContentSystem;
using RecrownedAthenaeum.Input;
using RecrownedAthenaeum.ScreenSystem;
using RecrownedAthenaeum.UI.BookSystem;
using RecrownedAthenaeum.UI.SkinSystem;
@@ -25,6 +26,7 @@ namespace RhythmBullet.Screens.MainMenu
book = new Book(assets, skin);
mainPage = new MainPage();
book.AddPages(mainPage);
InputUtilities.InputListeners.Add(book);
}
public override void Initiate(Rectangle screenSize, Camera2D camera)