Implemented changes in new RA. Also minor exception param change.

This commit is contained in:
2019-03-13 13:33:05 -05:00
parent 03f1bdee7b
commit f7aa272d76
5 changed files with 190 additions and 145 deletions

View File

@@ -33,7 +33,7 @@ namespace RhythmBullet.Audio.Visualizer
public override void Update(GameTime gameTime)
{
if (disposed) throw new ObjectDisposedException(this.Name);
if (disposed) throw new ObjectDisposedException(GetType().Name);
UpdateBars((float)gameTime.ElapsedGameTime.TotalSeconds);
AverageBars();
base.Update(gameTime);
@@ -41,7 +41,7 @@ namespace RhythmBullet.Audio.Visualizer
public override void Draw(SpriteBatch batch)
{
if (disposed) throw new ObjectDisposedException(this.Name);
if (disposed) throw new ObjectDisposedException(GetType().Name);
rectangleRenderer.Begin(true);
for (int i = 0; i < BAR_COUNT; i++)
{
@@ -103,7 +103,7 @@ namespace RhythmBullet.Audio.Visualizer
public void Dispose()
{
if (disposed) throw new ObjectDisposedException(this.Name);
if (disposed) throw new ObjectDisposedException(GetType().Name);
Dispose(true);
}

View File

@@ -101,7 +101,7 @@ namespace RhythmBullet
Camera = RecrownedAthenaeum.Configuration.Camera2D;
screenManager = new ScreenManager();
RecrownedAthenaeum.Configuration.BeginBatchFunction = screenManager.beginBatchFunc;
RecrownedAthenaeum.Configuration.spriteBatchSettings = screenManager.batchSettings;
screenManager.ShowFirstScreenEvent += ShowFirstScreen;
QueueContent();
screenManager.Screen = new LoadingScreen(this, Content.Load<Texture2D>("RhythmBullet"), 0.7f);

View File

@@ -40,20 +40,20 @@ namespace RhythmBullet.Screens.MainMenu
base.ApplySize(width, height);
title.Scale = (width - 40) / title.texture.Width;
title.CenterOrigin();
title.CenterHorizontally(Boundaries);
title.CenterVertically(Boundaries);
title.CenterHorizontally();
title.CenterVertically();
playButton.situation.Width = (int)(0.3f * title.Boundaries.Width);
playButton.situation.Height = (int)(0.05f * title.Boundaries.Width);
playButton.CenterOrigin();
playButton.CenterHorizontally(Boundaries);
playButton.CenterHorizontally();
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);
quitButton.CenterOrigin();
quitButton.CenterHorizontally(Boundaries);
quitButton.CenterHorizontally();
quitButton.situation.Y = (int)quitButton.origin.Y + playButton.Boundaries.Y + playButton.Boundaries.Height + 15;
}