Implemented changes in new RA. Also minor exception param change.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
|
@@ -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;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user