new loading texture.

This commit is contained in:
2018-10-30 19:47:01 -05:00
parent a9647f2146
commit eeebff355f
6 changed files with 35 additions and 24 deletions

View File

@@ -73,14 +73,11 @@ namespace RhythmBullet.Zer01HD.Utilities.ContentSystem
/// </summary>
public void Update()
{
if (queue.Count > 0)
if (queue.Count > 0 && (thread == null || !thread.IsAlive))
{
if (thread == null || !thread.IsAlive)
{
ThreadStart threadStart = new ThreadStart(LoadBatch);
thread = new Thread(threadStart);
thread.Start();
}
ThreadStart threadStart = new ThreadStart(LoadBatch);
thread = new Thread(threadStart);
thread.Start();
}
}

View File

@@ -14,14 +14,16 @@ namespace RhythmBullet.Zer01HD.Game
class LoadingScreen : Screen
{
Texture2D recrown;
public LoadingScreen(Texture2D recrown)
Rectangle rectangleBounds;
public LoadingScreen(Texture2D recrown, Rectangle bounds)
{
this.recrown = recrown;
this.rectangleBounds = bounds;
}
public override void Draw(SpriteBatch spriteBatch)
{
spriteBatch.Draw(recrown, recrown.Bounds, Color.White);
spriteBatch.Draw(recrown, rectangleBounds, Color.White);
base.Draw(spriteBatch);
}
}