Exemplo n.º 1
0
 public void reinitialiseMenu()
 {
     moStart = new cMenuOption("Start Game", new Vector2(10, 250));
     moStart.isHighlighted = true;
     moControls = new cMenuOption("Controls", new Vector2(10, 300));
     moQuit = new cMenuOption("Quit", new Vector2(10, 350));
     isAllowingKeys = false;
     MediaPlayer.Play(bgmMenu);
 }
Exemplo n.º 2
0
 //this will require menu items
 //this will require that the "current" option is highlighted in some way
 //options: controls, new game and Quit
 //first option is highlighted by default
 //change text colour to show highlight
 //will require a rectangle to act as the highlighted area?
 //will need to find a way to integrate keyboard input
 public void loadMenuContent(ContentManager Content)
 {
     texBG = Content.Load<Texture2D>(".\\Textures\\menuBG");
     bgmMenu = Content.Load<Song>(".\\Music\\menuMusic");
     moStart = new cMenuOption("Start Game", new Vector2(10, 250));
     moStart.isHighlighted = true;
     moControls = new cMenuOption("Controls", new Vector2(10, 300));
     moQuit = new cMenuOption("Quit", new Vector2(10, 350));
     isAllowingKeys = false;
     sfHelpFont = cMenuOption.sfOptionFont;
     MediaPlayer.Play(bgmMenu);
 }