Cleaned assets and code for new scaling system.
This commit is contained in:
@@ -21,15 +21,15 @@ namespace RhythmBullet.Screens.MainMenu
|
||||
protected override void Initialize(ContentManagerController assets, ISkin skin, BasicScissor scissorBox)
|
||||
{
|
||||
title = new Image(assets.Get<Texture2D>("title"));
|
||||
AddModule(title);
|
||||
AddModules(title);
|
||||
|
||||
SpriteFont font = assets.Get<SpriteFont>("gasalt_regular");
|
||||
|
||||
playButton = new TextButton("Play!", font, skin);
|
||||
AddModule(playButton);
|
||||
AddModules(playButton);
|
||||
|
||||
quitButton = new TextButton("Quit", font, skin);
|
||||
AddModule(quitButton);
|
||||
AddModules(quitButton);
|
||||
|
||||
base.Initialize(assets, skin, scissorBox);
|
||||
}
|
||||
@@ -43,17 +43,17 @@ namespace RhythmBullet.Screens.MainMenu
|
||||
title.CenterVertically();
|
||||
|
||||
|
||||
playButton.situation.Width = (int)(0.3f * title.Boundaries.Width);
|
||||
playButton.situation.Height = (int)(0.05f * title.Boundaries.Width);
|
||||
playButton.Width = (int)(0.3f * title.Boundaries.Width);
|
||||
playButton.Height = (int)(0.05f * title.Boundaries.Width);
|
||||
playButton.CenterOrigin();
|
||||
playButton.CenterHorizontally();
|
||||
playButton.situation.Y = (int)playButton.origin.Y + title.Boundaries.Y + title.Boundaries.Height + 60;
|
||||
playButton.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);
|
||||
quitButton.Width = (int)(0.3f * title.Boundaries.Width);
|
||||
quitButton.Height = (int)(0.05f * title.Boundaries.Width);
|
||||
quitButton.CenterOrigin();
|
||||
quitButton.CenterHorizontally();
|
||||
quitButton.situation.Y = (int)quitButton.origin.Y + playButton.Boundaries.Y + playButton.Boundaries.Height + 15;
|
||||
quitButton.Y = (int)quitButton.origin.Y + playButton.Boundaries.Y + playButton.Boundaries.Height + 15;
|
||||
|
||||
|
||||
base.ApplySize(width, height);
|
||||
|
@@ -3,7 +3,7 @@ using Microsoft.Xna.Framework.Graphics;
|
||||
using RecrownedAthenaeum.ContentSystem;
|
||||
using RecrownedAthenaeum.Input;
|
||||
using RecrownedAthenaeum.Render;
|
||||
using RecrownedAthenaeum.ScreenSystem;
|
||||
using RecrownedAthenaeum.UI.ScreenSystem;
|
||||
using RecrownedAthenaeum.UI.BookSystem;
|
||||
using RecrownedAthenaeum.UI.SkinSystem;
|
||||
using RhythmBullet.Screens.Transitions;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using RecrownedAthenaeum.Render;
|
||||
using RecrownedAthenaeum.ScreenSystem;
|
||||
using RecrownedAthenaeum.UI.ScreenSystem;
|
||||
using System;
|
||||
|
||||
namespace RhythmBullet.Screens.Transitions
|
||||
|
Reference in New Issue
Block a user