new loading texture.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user