public PauseScreen() { LinkedMenuItem cb = new MainMenuButton(this); LinkedMenuItem eb = new ExitButton(this, null, null, cb, null); cb.Down = eb; menuItems = new List <LinkedMenuItem>(); menuItems.Add(cb); menuItems.Add(eb); if (MainManager.Instance.gameMan.gState == GameState.map_editor) { LinkedMenuItem smb = new SaveMapButton(this); eb.Down = smb; smb.Up = eb; menuItems.Add(smb); } this.selectedItem = cb; }
public PauseScreen() { LinkedMenuItem cb = new MainMenuButton(this); LinkedMenuItem eb = new ExitButton(this, null, null, cb, null); cb.Down = eb; menuItems = new List<LinkedMenuItem>(); menuItems.Add(cb); menuItems.Add(eb); if(MainManager.Instance.gameMan.gState == GameState.map_editor) { LinkedMenuItem smb = new SaveMapButton(this); eb.Down = smb; smb.Up = eb; menuItems.Add(smb); } this.selectedItem = cb; }