public AndroidTableOverState(AndroidSheepGame table, GraphicsDevice graphicsDevice, GameContent gameContent) : base(table, graphicsDevice, gameContent) { var offset = 50; var halfscreen = table.ScreenHeight / 2; AndroidButton playAgain = new AndroidButton(gameContent.Button, gameContent.Font) { Position = new Vector2(240, table.ScreenHeight / 2 - 100), Text = "Play Again" }; AndroidButton doneButton = new AndroidButton(gameContent.Button, gameContent.Font) { Position = new Vector2(740, table.ScreenHeight / 2 - 100), Text = "Quit" }; doneButton.Click += DoneButton_Click; playAgain.Click += PlayAgain_Click; _components = new List <AndroidButton> { playAgain, doneButton }; _finalScoreBanner = new AndroidFinalScoreBanner(gameContent.Button4, gameContent.FinalScoreFont) { Position = new Vector2(table.ScreenWidth / 4.0f - 100, table.ScreenHeight / 4.0f - 50) }; AndroidGameOverScores playerOneScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font) { Position = new Vector2(offset, halfscreen) }; offset += gameContent.Button2.Width - 50; AndroidGameOverScores playerTwoScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font) { Position = new Vector2(offset, halfscreen) }; offset += gameContent.Button2.Width - 50; AndroidGameOverScores playerThreeScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font) { Position = new Vector2(offset, halfscreen) }; offset += gameContent.Button2.Width - 50; AndroidGameOverScores playerFourScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font) { Position = new Vector2(offset, halfscreen) }; offset += gameContent.Button2.Width - 50; AndroidGameOverScores playerFiveScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font) { Position = new Vector2(offset, halfscreen) }; _leaderboardpanel = new List <AndroidGameOverScores>() { playerOneScore, playerTwoScore, playerThreeScore, playerFourScore, playerFiveScore }; }
public AndroidGameOverState(AndroidSheepGame table, GraphicsDevice graphicsDevice, GameContent gameContent) : base(table, graphicsDevice, gameContent) { _nextGame = false; AndroidButton doneButton = new AndroidButton(gameContent.Button, gameContent.Font) { Position = new Vector2(Table.ScreenWidth / 2 - 130, Table.ScreenHeight / 2 - 300), Text = "Next Game", Color = Color.White }; doneButton.Click += DoneButton_Click; _pickerScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font) { Position = new Vector2(Table.ScreenWidth / 2.0f - 115, Table.ScreenWidth / 5.0f - 20) }; _components = new List <AndroidButton>() { doneButton, }; var offset = 50; var halfscreen = table.ScreenHeight / 2; AndroidGameOverScores playerOneScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font) { Position = new Vector2(offset, halfscreen) }; offset += gameContent.Button2.Width - 50; AndroidGameOverScores playerTwoScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font) { Position = new Vector2(offset, halfscreen) }; offset += gameContent.Button2.Width - 50; AndroidGameOverScores playerThreeScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font) { Position = new Vector2(offset, halfscreen) }; offset += gameContent.Button2.Width - 50; AndroidGameOverScores playerFourScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font) { Position = new Vector2(offset, halfscreen) }; offset += gameContent.Button2.Width - 50; AndroidGameOverScores playerFiveScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font) { Position = new Vector2(offset, halfscreen) }; _leaderboardpanel = new List <AndroidGameOverScores>() { playerOneScore, playerTwoScore, playerThreeScore, playerFourScore, playerFiveScore }; }