public WinAllScreen() { Title.Text = "Congratulation!"; WinAllText = new Label(FontLoader.Load("HeaderFont"), "You have passed all levels!", GlobalData.Theme["Silver"]); HighScoreText = new Label(FontLoader.Load("HeaderFont"), "High Score: " + GlobalData.Session.CurrentScore.ToString("N0"), GlobalData.Theme["Yellow"]); TextBox = WindowFactory.CreateTextbox(); SaveButton = WindowFactory.CreateButton("Back to menu"); TextBox.Position = new Vector2() { X = GetControlXPosition(TextBox, 1, 1), Y = this.Position.Y + 210f, }; SaveButton.Position = new Vector2() { X = GetControlXPosition(SaveButton, 1, 1), Y = this.Position.Y + 300f, }; }