public static void Update(MouseState mouse) { Resume.Update(mouse); Save.Update(mouse); MainMenu.Options.Update(mouse); ExitM.Update(mouse); if (Resume.IsClicked) { Game1.CurrentGameState = Game1.Gamestates.Playing; } if (ExitM.IsClicked) { Game1.CurrentGameState = Game1.Gamestates.Mainmenu; } if (Save.IsClicked) { Game1.CurrentGameState = Game1.Gamestates.Save; } if (MainMenu.Options.IsClicked) { Game1.CurrentGameState = Game1.Gamestates.OptionsIg; } }
public static void Draw(SpriteBatch sbatch) { MainMenu.Hatter.Draw(sbatch); MainMenu.Logo.DrawC(sbatch, Color.Beige); MainMenu.Karakter.DrawC(sbatch, Color.Cyan); MainMenu.Options.Draw(sbatch); ExitM.Draw(sbatch); Resume.Draw(sbatch); Save.Draw(sbatch); }
void Awake() { self = this; }