summaryrefslogtreecommitdiff
path: root/Penguloon/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'Penguloon/Scenes')
-rw-r--r--Penguloon/Scenes/GameScene.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/Penguloon/Scenes/GameScene.cs b/Penguloon/Scenes/GameScene.cs
index 06c171c..20bf7c4 100644
--- a/Penguloon/Scenes/GameScene.cs
+++ b/Penguloon/Scenes/GameScene.cs
@@ -128,10 +128,38 @@ namespace Penguloon.Scenes
destinationRectangle: new Rectangle(Level.Map.MapWidth + StaticUIValues.BorderWidth,
0, (int)StaticUIValues.ScreenViewport.X - (Level.Map.MapWidth + StaticUIValues.BorderWidth), (int)StaticUIValues.ScreenViewport.Y));
+ if (Level.SelectedObject != null)
+ {
+ for (int i = 0; i < Level.SelectedObject.UpgradeList.Count; i++)
+ {
+ Level.SelectedObject.UpgradeList[i].Draw(Main.SpriteBatch, i);
+ }
+ }
+
//border
Main.SpriteBatch.Draw(ContentManager.GetTexture("UI/border"),
destinationRectangle: new Rectangle(Level.Map.MapWidth,
0, StaticUIValues.BorderWidth, (int)StaticUIValues.ScreenViewport.Y));
+
+ //border under text
+ Main.SpriteBatch.Draw(ContentManager.GetTexture("UI/border-horizontal"),
+ destinationRectangle: new Rectangle(Level.Map.MapWidth + StaticUIValues.BorderWidth - 4,
+ StaticUIValues.IngameUITextAreaHeight, (int)StaticUIValues.ScreenViewport.X - (Level.Map.MapWidth + StaticUIValues.BorderWidth - 5), StaticUIValues.BorderWidth));
+
+ DrawText(ContentManager.GetFont(StaticUIValues.IngameFont), Main.Resources.GetString(Resource.String.IngameGold) + ": " + Level.Money,
+ new Vector2(Level.Map.MapWidth + StaticUIValues.BorderWidth + 5, 10),
+ new Vector2(StaticUIValues.ScreenViewport.X - Level.Map.MapWidth - StaticUIValues.BorderWidth, StaticUIValues.IngameUITextAreaHeight),
+ TextAllignment.LeftTop, Color.White, Color.Black, 2);
+
+ DrawText(ContentManager.GetFont(StaticUIValues.IngameFont), Main.Resources.GetString(Resource.String.IngameWave) + ": " + Level.Map.WaveManager.CurrentWave.ToString(),
+ new Vector2(Level.Map.MapWidth + StaticUIValues.BorderWidth + 5, 0),
+ new Vector2(StaticUIValues.ScreenViewport.X - Level.Map.MapWidth - StaticUIValues.BorderWidth, StaticUIValues.IngameUITextAreaHeight),
+ TextAllignment.LeftMiddle, Color.White, Color.Black, 2);
+
+ DrawText(ContentManager.GetFont(StaticUIValues.IngameFont), Main.Resources.GetString(Resource.String.IngameHealth) + ": " + Level.Health,
+ new Vector2(Level.Map.MapWidth + StaticUIValues.BorderWidth + 5, 0),
+ new Vector2(StaticUIValues.ScreenViewport.X - Level.Map.MapWidth - StaticUIValues.BorderWidth, StaticUIValues.IngameUITextAreaHeight),
+ TextAllignment.LeftBottom, Color.White, Color.Black, 2);
}
private void DrawUI(float deltaTime)