From 073f3a205d53fcf88f7ceb7eaf805545af82ad9b Mon Sep 17 00:00:00 2001 From: Recrown Date: Tue, 11 Sep 2018 13:22:15 -0500 Subject: [PATCH] began working on main page; furthered UI structure --- .../Zer01HD/Game/MainScreen/MainPage.cs | 17 +++++++++++++++++ RhythmBullet/Zer01HD/UI/Page/Page.cs | 7 ++++--- RhythmBullet/Zer01HD/UI/Page/PageManager.cs | 4 ++-- RhythmBullet/Zer01HD/UI/Screen/Screen.cs | 2 +- 4 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 RhythmBullet/Zer01HD/Game/MainScreen/MainPage.cs diff --git a/RhythmBullet/Zer01HD/Game/MainScreen/MainPage.cs b/RhythmBullet/Zer01HD/Game/MainScreen/MainPage.cs new file mode 100644 index 0000000..ab2404c --- /dev/null +++ b/RhythmBullet/Zer01HD/Game/MainScreen/MainPage.cs @@ -0,0 +1,17 @@ +using RhythmBullet.Zer01HD.UI; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace RhythmBullet.Zer01HD.Game.MainScreen +{ + class MainPage : Page + { + public MainPage(int pageX, int pageY) : base(pageX, pageY) + { + + } + } +} diff --git a/RhythmBullet/Zer01HD/UI/Page/Page.cs b/RhythmBullet/Zer01HD/UI/Page/Page.cs index 8e39ab8..2c7fcb8 100644 --- a/RhythmBullet/Zer01HD/UI/Page/Page.cs +++ b/RhythmBullet/Zer01HD/UI/Page/Page.cs @@ -10,10 +10,11 @@ namespace RhythmBullet.Zer01HD.UI { class Page { - private int x, y; - public Page() + private readonly int pageX, pageY; + public Page(int pageX, int pageY) { - + this.pageX = pageX; + this.pageY = pageY; } public void Update(GameTime gameTime) diff --git a/RhythmBullet/Zer01HD/UI/Page/PageManager.cs b/RhythmBullet/Zer01HD/UI/Page/PageManager.cs index df1e898..a02030c 100644 --- a/RhythmBullet/Zer01HD/UI/Page/PageManager.cs +++ b/RhythmBullet/Zer01HD/UI/Page/PageManager.cs @@ -16,7 +16,7 @@ namespace RhythmBullet.Zer01HD.UI { foreach (Page page in pages) { - page.act(gameTime); + page.Update(gameTime); } } @@ -24,7 +24,7 @@ namespace RhythmBullet.Zer01HD.UI { foreach (Page page in pages) { - page.draw(spriteBatch); + page.Draw(spriteBatch); } } } diff --git a/RhythmBullet/Zer01HD/UI/Screen/Screen.cs b/RhythmBullet/Zer01HD/UI/Screen/Screen.cs index 2bf3283..5a4154e 100644 --- a/RhythmBullet/Zer01HD/UI/Screen/Screen.cs +++ b/RhythmBullet/Zer01HD/UI/Screen/Screen.cs @@ -12,7 +12,7 @@ namespace RhythmBullet.Zer01HD.UI.Screen { public void Update(GameTime gameTime) { - + } public void Draw(SpriteBatch spriteBatch)