public GameOverScreen() { menuItems = new List<LinkedMenuItem>(); // Create our buttons StartGameButton restartButton = new StartGameButton(this); QuitToMenuButton menuButton = new QuitToMenuButton(this); // Link them up restartButton.Down = menuButton; menuButton.Up = restartButton; // Add items to the menu list menuItems.Add(restartButton); menuItems.Add(menuButton); // Select the default item this.SelectItem(restartButton); }
public GameOverScreen() { menuItems = new List <LinkedMenuItem>(); // Create our buttons StartGameButton restartButton = new StartGameButton(this); QuitToMenuButton menuButton = new QuitToMenuButton(this); // Link them up restartButton.Down = menuButton; menuButton.Up = restartButton; // Add items to the menu list menuItems.Add(restartButton); menuItems.Add(menuButton); // Select the default item this.SelectItem(restartButton); }
public TitleScreen() { // Create all our menu items menuItems = new List <LinkedMenuItem>(); StartGameButton sgb = new StartGameButton(this); StartEditorButton seb = new StartEditorButton(this); HelpButton hb = new HelpButton(this); // Link up the menu items sgb.Down = seb; seb.Up = sgb; seb.Down = hb; hb.Up = seb; // Add the menu items to our collection menuItems.Add(seb); menuItems.Add(sgb); //menuItems.Add(hb); // Select start game by default this.SelectItem(sgb); }
public TitleScreen() { // Create all our menu items menuItems = new List<LinkedMenuItem>(); StartGameButton sgb = new StartGameButton(this); StartEditorButton seb = new StartEditorButton(this); HelpButton hb = new HelpButton(this); // Link up the menu items sgb.Down = seb; seb.Up = sgb; seb.Down = hb; hb.Up = seb; // Add the menu items to our collection menuItems.Add(seb); menuItems.Add(sgb); //menuItems.Add(hb); // Select start game by default this.SelectItem(sgb); }