public override void SelectMenu(MouseState mouseState, MouseState oldState) { for (int i = 0; i < selected.Length; i++) { selected[i] = false; } if (isShowing) { if (Simplify.MouseSelect(font, mouseState, Simplify.GetCenterText(font, "Single Player"), Game.Height / 3, "Single Player")) { selected[0] = true; } else if (Simplify.MouseSelect(font, mouseState, Simplify.GetCenterText(font, "Multiplayer"), Game.Height / 3 + 35, "Multiplayer")) { selected[1] = true; } else if (Simplify.MouseSelect(font, mouseState, Simplify.GetCenterText(font, "Options"), Game.Height / 3 + 70, "Options")) { selected[2] = true; } else if (Simplify.MouseSelect(font, mouseState, Simplify.GetCenterText(font, "Credits"), Game.Height / 3 + 105, "Credits")) { selected[3] = true; } else if (Simplify.MouseSelect(font, mouseState, Simplify.GetCenterText(font, "Exit"), Game.Height / 3 + 140, "Exit")) { selected[4] = true; } } }
public void ExitGame(MouseState mouseState, MouseState oldState, Game game) { if (isShowing) { if (Simplify.MouseSelect(font, mouseState, Simplify.GetCenterText(font, "Exit"), Game.Height / 3 + 140, "Exit")) { if (mouseState.LeftButton == ButtonState.Released && oldState.LeftButton == ButtonState.Pressed) { game.Exit(); } } } }
public override void SelectMenu(MouseState mouseState, MouseState oldState) { for (int i = 0; i < selected.Length; i++) { selected[i] = false; } if (isShowing) { if (Simplify.MouseSelect(font, mouseState, Simplify.GetCenterText(font, "Video"), Game.Height / 3, "Video")) { selected[0] = true; } else if (Simplify.MouseSelect(font, mouseState, Simplify.GetCenterText(font, "Audio"), Game.Height / 3 + 35, "Audio")) { selected[1] = true; } else if (Simplify.MouseSelect(font, mouseState, Simplify.GetCenterText(font, "Exit"), Game.Height / 3 + 70, "Exit")) { selected[2] = true; } } }
public void SelectMenu(MouseState mouseState, MouseState oldState) { for (int i = 0; i < selected.Length; i++) { selected[i] = false; } if (Simplify.MouseSelect(chatFont, mouseState, Simplify.GetCenterText(chatFont, "Talk"), 20, "Talk")) { selected[0] = true; if (mouseState.LeftButton == ButtonState.Released && oldState.LeftButton == ButtonState.Pressed) { PlayState.Player.MerchantChatting = false; PlayState.Player.AddChatLine("For just a cup of coffee a day, you can experience some of my finest weapons."); PlayState.Player.Chat(); } } else if (Simplify.MouseSelect(chatFont, mouseState, Simplify.GetCenterText(chatFont, "Buy/Sell"), 40, "Buy/Sell")) { selected[1] = true; if (mouseState.LeftButton == ButtonState.Released && oldState.LeftButton == ButtonState.Pressed) { PlayState.Player.MerchantChatting = false; PlayState.Player.Chat(); isTrading = true; } } else if (Simplify.MouseSelect(chatFont, mouseState, Simplify.GetCenterText(chatFont, "Close"), 60, "Close")) { selected[2] = true; if (mouseState.LeftButton == ButtonState.Released && oldState.LeftButton == ButtonState.Pressed) { PlayState.Player.MerchantChatting = false; PlayState.Player.Chat(); } } }