Began work on input.
This commit is contained in:
parent
b20ef57991
commit
97a65abec7
Binary file not shown.
@ -1193,6 +1193,11 @@
|
||||
</summary>
|
||||
<param name="name">Name of page to remove.</param>
|
||||
</member>
|
||||
<member name="M:RecrownedAthenaeum.UI.BookSystem.Book.ClearPages">
|
||||
<summary>
|
||||
Removes all pages.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:RecrownedAthenaeum.UI.BookSystem.Book.LerpToPage(RecrownedAthenaeum.UI.BookSystem.Page)">
|
||||
<summary>
|
||||
Perform a step of linear interpolation to the given page.
|
||||
@ -1205,6 +1210,20 @@
|
||||
</summary>
|
||||
<param name="page">Page to go to.</param>
|
||||
</member>
|
||||
<member name="M:RecrownedAthenaeum.UI.BookSystem.Book.KeyboardStateChanged(Microsoft.Xna.Framework.Input.KeyboardState)">
|
||||
<summary>
|
||||
Passes the new keyboard state down to each page in order of when it was added.
|
||||
</summary>
|
||||
<param name="state"></param>
|
||||
<returns>True if the state change should to trigger further input listeners.</returns>
|
||||
</member>
|
||||
<member name="M:RecrownedAthenaeum.UI.BookSystem.Book.MouseStateChanged(Microsoft.Xna.Framework.Input.MouseState)">
|
||||
<summary>
|
||||
Passes the new mouse state down to each page in order of when it was added.
|
||||
</summary>
|
||||
<param name="state"></param>
|
||||
<returns>True if the state change should to trigger further input listeners.</returns>
|
||||
</member>
|
||||
<member name="T:RecrownedAthenaeum.UI.BookSystem.Page">
|
||||
<summary>
|
||||
A page a part of a <see cref="T:RecrownedAthenaeum.UI.BookSystem.Book"/>.
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user