public override void Draw2() { if (SK.orientation <= 2) { spriteBatch.Draw(SK.texture_background_canvas, new Vector2(SK.Position_DisplayEdge().X, SK.Position_DisplayEdge().Y - 80), Color.PaleTurquoise); } else { spriteBatch.Draw(SK.texture_background_canvas, new Vector2(SK.Position_DisplayEdge().X - 80, SK.Position_DisplayEdge().Y), Color.PaleTurquoise); } spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold1() + new Vector2(70 + move * 2, 150), new Rectangle(1 + (int)(71 * card1.X), 1 + (int)(96 * card1.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold2() + new Vector2(70 + move, 150), new Rectangle(1 + (int)(71 * card2.X), 1 + (int)(96 * card2.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans2, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold3() + new Vector2(70, 150), new Rectangle(1 + (int)(71 * card3.X), 1 + (int)(96 * card3.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans3, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold4() + new Vector2(70 - move, 150), new Rectangle(1 + (int)(71 * card4.X), 1 + (int)(96 * card4.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans4, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold5() + new Vector2(70 - move * 2, 150), new Rectangle(1 + (int)(71 * card5.X), 1 + (int)(96 * card5.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans5, SpriteEffects.None, 0.0f); if (hold1) { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold1(), Color.White); } else { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold1(), Color.Gray * 0.25f); } if (hold2) { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold2(), Color.White); } else { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold2(), Color.Gray * 0.25f); } if (hold3) { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold3(), Color.White); } else { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold3(), Color.Gray * 0.25f); } if (hold4) { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold4(), Color.White); } else { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold4(), Color.Gray * 0.25f); } if (hold5) { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold5(), Color.White); } else { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold5(), Color.Gray * 0.25f); } if (!betting && !end) { if (selector_hold == 1) { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold1(), Color.Pink * 0.50f); } if (selector_hold == 2) { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold2(), Color.Pink * 0.50f); } if (selector_hold == 3) { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold3(), Color.Pink * 0.50f); } if (selector_hold == 4) { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold4(), Color.Pink * 0.50f); } if (selector_hold == 5) { spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold5(), Color.Pink * 0.50f); } } if (betting && !end) { spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid(), Color.White); spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.White); spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(0), Color.White); if (betmulti >= 1) { spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(1), Color.White); } if (betmulti >= 2) { spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(2), Color.White); } if (betmulti >= 3) { spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(3), Color.White); } if (betmulti >= 4) { spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(4), Color.White); } spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(0), Color.White); if (betmulti >= 1) { spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(1), Color.White); } if (betmulti >= 2) { spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(2), Color.White); } if (betmulti >= 3) { spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(3), Color.White); } if (betmulti >= 4) { spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(4), Color.White); } spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up1(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up2(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down1(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down2(), Color.White); if (selector_bet == 0) { spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.Red * 0.50f); } if (selector_bet == 1) { spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.Red * 0.50f); } spriteBatch.DrawString(SK.font_score, "BET:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 45), Color.Black); spriteBatch.DrawString(SK.font_score, "COIN:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 120 - SK.font_score.MeasureString("COIN:").Y), Color.DarkGoldenrod); spriteBatch.DrawString(SK.font_score, "" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235 - SK.font_score.MeasureString("" + bet).X, 45), Color.Black); spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod); } if (!betting) { spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3(), Color.White); } if (!betting && !end) { spriteBatch.DrawString(SK.font_score, "" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("" + bet).X, 45), Color.Black); spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod); } if (!betting && end) { spriteBatch.DrawString(SK.font_score, hand, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - SK.font_score.MeasureString(hand).X / 2, SK.Position_Bet_Grid3().Y - 25), Color.Black); if (coins_plus > 0) { spriteBatch.DrawString(SK.font_score, "+" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("+" + coins_plus).X, 45), Color.LimeGreen); } if (coins_plus < 0) { spriteBatch.DrawString(SK.font_score, "" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("" + coins_plus).X, 45), Color.IndianRed); } spriteBatch.DrawString(SK.font_score, "" + FM.coins, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235, 120) - SK.font_score.MeasureString("" + FM.coins), Color.DarkGoldenrod); } }
public override void Draw2() { if (SK.orientation <= 2) { spriteBatch.Draw(SK.texture_background_canvas, new Vector2(SK.Position_DisplayEdge().X, SK.Position_DisplayEdge().Y - 80), Color.LightBlue); } else { spriteBatch.Draw(SK.texture_background_canvas, new Vector2(SK.Position_DisplayEdge().X - 80, SK.Position_DisplayEdge().Y), Color.LightBlue); } int i = 0; foreach (Vector3 v in cards_player) { spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 9 + 50 * i, SK.Get_GridSize().Y / 9 * 4 + 20 * i + v.Z), new Rectangle(1 + (int)(71 * v.X), 1 + (int)(96 * v.Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 2, SpriteEffects.None, 0.0f); i++; } i = 0; foreach (Vector3 v in cards_dealer) { spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 9 * 5 + 50 * i + v.Z, SK.Get_GridSize().Y / 9 + 15 * i), new Rectangle(1 + (int)(71 * v.X), 1 + (int)(96 * v.Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 2, SpriteEffects.None, 0.0f); i++; } if (active_player && !betting) { spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 9 * 5 + 50 + hiddencard, SK.Get_GridSize().Y / 9 + 15), new Rectangle(1, 1, 70, 95), Color.White, 0.0f, new Vector2(0, 0), 2, SpriteEffects.None, 0.0f); } if (betting) { spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid(), Color.White); spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.White); spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(0), Color.White); if (betmulti >= 1) { spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(1), Color.White); } if (betmulti >= 2) { spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(2), Color.White); } if (betmulti >= 3) { spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(3), Color.White); } if (betmulti >= 4) { spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(4), Color.White); } spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(0), Color.White); if (betmulti >= 1) { spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(1), Color.White); } if (betmulti >= 2) { spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(2), Color.White); } if (betmulti >= 3) { spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(3), Color.White); } if (betmulti >= 4) { spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(4), Color.White); } spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up1(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up2(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down1(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down2(), Color.White); if (selector_bet == 0) { spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.Red * 0.50f); } if (selector_bet == 1) { spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.Red * 0.50f); } spriteBatch.DrawString(SK.font_score, "BET:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 45), Color.Black); spriteBatch.DrawString(SK.font_score, "COIN:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 120 - SK.font_score.MeasureString("COIN:").Y), Color.DarkGoldenrod); spriteBatch.DrawString(SK.font_score, "" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235 - SK.font_score.MeasureString("" + bet).X, 45), Color.Black); spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod); } else { if (!end) { if (selector_card == 0) { spriteBatch.Draw(SK.texture_static_blackjack_hit, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Hit().X, SK.Collision_BlackJack_Hit().Y), Color.White); } if (selector_card == 1) { spriteBatch.Draw(SK.texture_static_blackjack_hit, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Hit().X, SK.Collision_BlackJack_Hit().Y), Color.White * 0.20f); } if (selector_card == 0) { spriteBatch.Draw(SK.texture_static_blackjack_stand, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Stand().X, SK.Collision_BlackJack_Stand().Y), Color.White * 0.20f); } if (selector_card == 1) { spriteBatch.Draw(SK.texture_static_blackjack_stand, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Stand().X, SK.Collision_BlackJack_Stand().Y), Color.White); } } else { spriteBatch.Draw(SK.texture_static_blackjack_hit, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Hit().X, SK.Collision_BlackJack_Hit().Y), Color.White * 0.20f); spriteBatch.Draw(SK.texture_static_blackjack_stand, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Stand().X, SK.Collision_BlackJack_Stand().Y), Color.White * 0.20f); } } if (!betting && end) { if (value_dealer > 21) { spriteBatch.DrawString(SK.font_score, "The House gone bust!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The House gone bust!") / 2, Color.Black); } else if (value_player > 21) { spriteBatch.DrawString(SK.font_score, "The Player gone bust!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The Player gone bust!") / 2, Color.Black); } else if (value_player == value_dealer && cards_player.Count > cards_dealer.Count) { spriteBatch.DrawString(SK.font_score, "The Player wins!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The Player wins!") / 2, Color.Black); } else if (value_player == value_dealer && cards_player.Count == cards_dealer.Count) { spriteBatch.DrawString(SK.font_score, "DRAW", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("DRAW") / 2, Color.Black); } else if (value_player == 21 && cards_player.Count == 2) { spriteBatch.DrawString(SK.font_score, "BLACK JACK", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("BLACK JACK") / 2, Color.Black); } else if (value_player == value_dealer && cards_player.Count < cards_dealer.Count) { spriteBatch.DrawString(SK.font_score, "The House wins!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The House wins!") / 2, Color.Black); } else if (value_player > value_dealer) { spriteBatch.DrawString(SK.font_score, "The Player wins!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The Player wins!") / 2, Color.Black); } else { spriteBatch.DrawString(SK.font_score, "The House wins!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The House wins!") / 2, Color.Black); } } if (!betting) { spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2(), Color.White); } if (!betting && !end) { spriteBatch.DrawString(SK.font_score, "" + value_player, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(50, 45), Color.LightGray); spriteBatch.DrawString(SK.font_score, "" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235 - SK.font_score.MeasureString("" + bet).X, 45), Color.Black); spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod); } if (!betting && end) { if (coins_plus > 0) { spriteBatch.DrawString(SK.font_score, "+" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235 - SK.font_score.MeasureString("+" + coins_plus).X, 45), Color.LimeGreen); } if (coins_plus < 0) { spriteBatch.DrawString(SK.font_score, "" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235 - SK.font_score.MeasureString("" + coins_plus).X, 45), Color.IndianRed); } spriteBatch.DrawString(SK.font_score, "" + FM.coins, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235, 120) - SK.font_score.MeasureString("" + FM.coins), Color.DarkGoldenrod); } }
public override void Draw2() { spriteBatch.Draw(SK.texture_background_slotmachine1, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - SK.texture_background_slotmachine1.Width / 2, 0), Color.White); if (active_spin) { spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - 120 * 4 - pos_wheel1), new Rectangle(1 + (116 * grid[0, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - 120 * 3 - pos_wheel1), new Rectangle(1 + (116 * grid[1, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - 120 * 2 - pos_wheel1), new Rectangle(1 + (116 * grid[2, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - 120 * 1 - pos_wheel1), new Rectangle(1 + (116 * grid[3, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - pos_wheel1), new Rectangle(1 + (116 * grid[4, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 + 120 * 1 - pos_wheel1), new Rectangle(1 + (116 * grid[5, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 + 120 * 2 - pos_wheel1), new Rectangle(1 + (116 * grid[6, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 + 120 * 3 - pos_wheel1), new Rectangle(1 + (116 * grid[7, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 + 120 * 4 - pos_wheel1), new Rectangle(1 + (116 * grid[8, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - 120 * 4 - pos_wheel2), new Rectangle(1 + (116 * grid[0, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - 120 * 3 - pos_wheel2), new Rectangle(1 + (116 * grid[1, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - 120 * 2 - pos_wheel2), new Rectangle(1 + (116 * grid[2, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - 120 * 1 - pos_wheel2), new Rectangle(1 + (116 * grid[3, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - pos_wheel2), new Rectangle(1 + (116 * grid[4, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 + 120 * 1 - pos_wheel2), new Rectangle(1 + (116 * grid[5, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 + 120 * 2 - pos_wheel2), new Rectangle(1 + (116 * grid[6, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 + 120 * 3 - pos_wheel2), new Rectangle(1 + (116 * grid[7, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 + 120 * 4 - pos_wheel2), new Rectangle(1 + (116 * grid[8, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - 120 * 4 - pos_wheel3), new Rectangle(1 + (116 * grid[0, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - 120 * 3 - pos_wheel3), new Rectangle(1 + (116 * grid[1, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - 120 * 2 - pos_wheel3), new Rectangle(1 + (116 * grid[2, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - 120 * 1 - pos_wheel3), new Rectangle(1 + (116 * grid[3, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - pos_wheel3), new Rectangle(1 + (116 * grid[4, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 + 120 * 1 - pos_wheel3), new Rectangle(1 + (116 * grid[5, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 + 120 * 2 - pos_wheel3), new Rectangle(1 + (116 * grid[6, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 + 120 * 3 - pos_wheel3), new Rectangle(1 + (116 * grid[7, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 + 120 * 4 - pos_wheel3), new Rectangle(1 + (116 * grid[8, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f); } if (end) { if (active_line1) { spriteBatch.Draw(SK.texture_static_slotmachine_line1, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White); } if (active_line2) { spriteBatch.Draw(SK.texture_static_slotmachine_line2, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White); } if (active_line3) { spriteBatch.Draw(SK.texture_static_slotmachine_line3, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White); } if (active_line4) { spriteBatch.Draw(SK.texture_static_slotmachine_line4, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White); } if (active_line5) { spriteBatch.Draw(SK.texture_static_slotmachine_line5, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White); } } if (SK.orientation <= 2) { spriteBatch.Draw(SK.texture_background_slotmachine2, new Vector2(SK.Position_DisplayEdge().X, SK.Position_DisplayEdge().Y - 5), Color.White); } else { spriteBatch.Draw(SK.texture_background_slotmachine2, new Vector2(SK.Position_DisplayEdge().X - 80, SK.Position_DisplayEdge().Y - 5), Color.White); } if (multi >= 1) { spriteBatch.Draw(SK.texture_static_slotmachine_point1, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 243 - SK.Position_SlotMachine_Row1().Y), Color.White); } if (multi >= 2) { spriteBatch.Draw(SK.texture_static_slotmachine_point2, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 142 - SK.Position_SlotMachine_Row1().Y), Color.White); } if (multi >= 3) { spriteBatch.Draw(SK.texture_static_slotmachine_point3, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 346 - SK.Position_SlotMachine_Row1().Y), Color.White); } if (multi >= 4) { spriteBatch.Draw(SK.texture_static_slotmachine_point4, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 35 - SK.Position_SlotMachine_Row1().Y), Color.White); } if (multi >= 5) { spriteBatch.Draw(SK.texture_static_slotmachine_point5, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 455 - SK.Position_SlotMachine_Row1().Y), Color.White); } if (!active_spin && !end) { spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid(), Color.White); spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.White); spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(0), Color.White); if (betmulti >= 1) { spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(1), Color.White); } if (betmulti >= 2) { spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(2), Color.White); } if (betmulti >= 3) { spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(3), Color.White); } if (betmulti >= 4) { spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(4), Color.White); } spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(0), Color.White); if (betmulti >= 1) { spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(1), Color.White); } if (betmulti >= 2) { spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(2), Color.White); } if (betmulti >= 3) { spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(3), Color.White); } if (betmulti >= 4) { spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(4), Color.White); } spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up1(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up2(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down1(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down2(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_left, SK.Position_DisplayEdge() + SK.Position_Bet_Left(), Color.White); spriteBatch.Draw(SK.texture_casino_bet_right, SK.Position_DisplayEdge() + SK.Position_Bet_Right(), Color.White); if (selector_bet == 0) { spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.Red * 0.50f); } if (selector_bet == 1) { spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.Red * 0.50f); } spriteBatch.DrawString(SK.font_score, "BET:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 45), Color.Black); spriteBatch.DrawString(SK.font_score, "COIN:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 120 - SK.font_score.MeasureString("COIN:").Y), Color.DarkGoldenrod); spriteBatch.DrawString(SK.font_score, multi + "x" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235 - SK.font_score.MeasureString(multi + "x" + bet).X, 45), Color.Black); spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod); } if (active_spin || end) { spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3(), Color.White); } if (active_spin && !end) { spriteBatch.DrawString(SK.font_score, multi + "x" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString(multi + "x" + bet).X, 45), Color.Black); spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod); } if (end) { if (coins_plus > 0) { spriteBatch.DrawString(SK.font_score, "+" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("+" + coins_plus).X, 45), Color.LimeGreen); } if (coins_plus < 0) { spriteBatch.DrawString(SK.font_score, "" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("" + coins_plus).X, 45), Color.IndianRed); } spriteBatch.DrawString(SK.font_score, "" + FM.coins, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235, 120) - SK.font_score.MeasureString("" + FM.coins), Color.DarkGoldenrod); } }