Permalink
Browse files

fixing the HUD trap

Disabled the fake number of deliveries shown on the UI for levels > 2
  • Loading branch information...
darioscarpa committed Aug 18, 2018
1 parent 6306cf7 commit ae2d3332c03395ae478fe2c0a16f66927245bae1
Showing with 2 additions and 9 deletions.
  1. +2 −9 TheLastSlice/UI/GameplayHUD.cs
@@ -111,15 +111,8 @@ public override void Draw(SpriteBatch spriteBatch)
spriteBatch.DrawString(Text, "Order", new Vector2(10, 20), Color.White);
spriteBatch.DrawString(Text, string.Format("{0}", Math.Min(TheLastSliceGame.LevelManager.CurrentLevel.CompletedNumDeliveries + 1, TheLastSliceGame.LevelManager.CurrentLevel.TotalNumDeliveries)), new Vector2(80, 20), Color.White);
spriteBatch.DrawString(Text, "Of", new Vector2(105, 20), Color.White);
if (TheLastSliceGame.LevelManager.CurrentLevelNum > 2)
{
spriteBatch.DrawString(Text, "99", new Vector2(135, 20), Color.White); // jk
}
else
{
spriteBatch.DrawString(Text, TheLastSliceGame.LevelManager.CurrentLevel.TotalNumDeliveries.ToString(), new Vector2(135, 20), Color.White);
}
spriteBatch.DrawString(Text, "Of", new Vector2(105, 20), Color.White);
spriteBatch.DrawString(Text, TheLastSliceGame.LevelManager.CurrentLevel.TotalNumDeliveries.ToString(), new Vector2(135, 20), Color.White);
spriteBatch.Draw(HUDEmptySlot, new Vector2(175, 0), Color.White);
spriteBatch.Draw(HUDEmptySlot, new Vector2(225, 0), Color.White);

0 comments on commit ae2d333

Please sign in to comment.