diff options
Diffstat (limited to 'Penguloon/Scenes/StatsScene.cs')
| -rw-r--r-- | Penguloon/Scenes/StatsScene.cs | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/Penguloon/Scenes/StatsScene.cs b/Penguloon/Scenes/StatsScene.cs index c488f81..aa5dd29 100644 --- a/Penguloon/Scenes/StatsScene.cs +++ b/Penguloon/Scenes/StatsScene.cs @@ -15,7 +15,7 @@ namespace Penguloon.Scenes public override void CreateControls() { Button btnBack = new Button(this, - new Vector2(10, 10), + new Vector2(50, 50), StaticUIValues.MenuButtonSize, Main.Resources.GetString(Resource.String.LevelSelectionBack)); btnBack.OnClick += BtnStart_OnClick; @@ -36,7 +36,7 @@ namespace Penguloon.Scenes DrawSnowflakes(); - int borderHorizontalY = 10 + (int)StaticUIValues.MenuButtonSize.Y + 50; + int borderHorizontalY = 50 + (int)StaticUIValues.MenuButtonSize.Y + 50; //border top Main.SpriteBatch.Draw(ContentManager.GetTexture("UI/border-horizontal"), @@ -66,45 +66,47 @@ namespace Penguloon.Scenes new Vector2(0, 0), TextAllignment.LeftTop, Color.FromNonPremultiplied(200, 200, 200, 200), Color.Black, 2); + int martinXRight = StaticUIValues.StatsMarginXRight; + // Total kills DrawText(ContentManager.GetFont(StaticUIValues.StatsFont), Main.Resources.GetString(Resource.String.StatsTotalKills), - new Vector2(120, borderHorizontalY + 25 + (60 * 1)), + new Vector2(120, borderHorizontalY + 25 + (StaticUIValues.StatsSpacingY * 1)), new Vector2(0, 0), TextAllignment.LeftTop, Color.White, Color.Black, 2); // Total kills stat DrawText(ContentManager.GetFont(StaticUIValues.StatsFont), UserdataManager.TotalKills.ToString(), - new Vector2(920, borderHorizontalY + 25 + (60 * 1)), + new Vector2(StaticUIValues.ScreenViewport.X - martinXRight, borderHorizontalY + 25 + (StaticUIValues.StatsSpacingY * 1)), new Vector2(0, 0), TextAllignment.RightTop, Color.White, Color.Black, 2); // Total games DrawText(ContentManager.GetFont(StaticUIValues.StatsFont), Main.Resources.GetString(Resource.String.StatsTotalGames), - new Vector2(120, borderHorizontalY + 25 + (60 * 2)), + new Vector2(120, borderHorizontalY + 25 + (StaticUIValues.StatsSpacingY * 2)), new Vector2(0, 0), TextAllignment.LeftTop, Color.White, Color.Black, 2); // Total games stat DrawText(ContentManager.GetFont(StaticUIValues.StatsFont), UserdataManager.GamesPlayed.ToString(), - new Vector2(920, borderHorizontalY + 25 + (60 * 2)), + new Vector2(StaticUIValues.ScreenViewport.X - martinXRight, borderHorizontalY + 25 + (StaticUIValues.StatsSpacingY * 2)), new Vector2(0, 0), TextAllignment.RightTop, Color.White, Color.Black, 2); // Total money spent DrawText(ContentManager.GetFont(StaticUIValues.StatsFont), Main.Resources.GetString(Resource.String.StatsTotalMoneySpent), - new Vector2(120, borderHorizontalY + 25 + (60 * 3)), + new Vector2(120, borderHorizontalY + 25 + (StaticUIValues.StatsSpacingY * 3)), new Vector2(0, 0), TextAllignment.LeftTop, Color.White, Color.Black, 2); // Total money spent stat DrawText(ContentManager.GetFont(StaticUIValues.StatsFont), UserdataManager.TotalMoneySpent.ToString(), - new Vector2(920, borderHorizontalY + 25 + (60 * 3)), + new Vector2(StaticUIValues.ScreenViewport.X - martinXRight, borderHorizontalY + 25 + (StaticUIValues.StatsSpacingY * 3)), new Vector2(0, 0), TextAllignment.RightTop, Color.White, Color.Black, 2); @@ -112,35 +114,35 @@ namespace Penguloon.Scenes DrawText(ContentManager.GetFont(StaticUIValues.StatsFont), Main.Resources.GetString(Resource.String.StatsBestStatsTitle), - new Vector2(120, borderHorizontalY + 50 + (60 * 4)), + new Vector2(120, borderHorizontalY + 50 + (StaticUIValues.StatsSpacingY * 4)), new Vector2(0, 0), TextAllignment.LeftTop, Color.FromNonPremultiplied(200, 200, 200, 200), Color.Black, 2); // Total kills DrawText(ContentManager.GetFont(StaticUIValues.StatsFont), Main.Resources.GetString(Resource.String.StatsBestKills), - new Vector2(120, borderHorizontalY + 75 + (60 * 5)), + new Vector2(120, borderHorizontalY + 75 + (StaticUIValues.StatsSpacingY * 5)), new Vector2(0, 0), TextAllignment.LeftTop, Color.White, Color.Black, 2); // Total kills stat DrawText(ContentManager.GetFont(StaticUIValues.StatsFont), UserdataManager.HighestKills.ToString(), - new Vector2(920, borderHorizontalY + 75 + (60 * 5)), + new Vector2(StaticUIValues.ScreenViewport.X - martinXRight, borderHorizontalY + 75 + (StaticUIValues.StatsSpacingY * 5)), new Vector2(0, 0), TextAllignment.RightTop, Color.White, Color.Black, 2); // Total games DrawText(ContentManager.GetFont(StaticUIValues.StatsFont), Main.Resources.GetString(Resource.String.StatsBestRound), - new Vector2(120, borderHorizontalY + 75 + (60 * 6)), + new Vector2(120, borderHorizontalY + 75 + (StaticUIValues.StatsSpacingY * 6)), new Vector2(0, 0), TextAllignment.LeftTop, Color.White, Color.Black, 2); // Total games stat DrawText(ContentManager.GetFont(StaticUIValues.StatsFont), UserdataManager.HighestRound.ToString(), - new Vector2(920, borderHorizontalY + 75 + (60 * 6)), + new Vector2(StaticUIValues.ScreenViewport.X - martinXRight, borderHorizontalY + 75 + (StaticUIValues.StatsSpacingY * 6)), new Vector2(0, 0), TextAllignment.RightTop, Color.White, Color.Black, 2); } |
