/// <summary> /// Constructor for Including Score /// /// </summary> public Menu(ICanyonShooterGame game, string name, bool score) : base(game as Game) { assetName = "Config\\" + name + ".xml"; this.game = game; this.currentMenu = name; menuXml = game.Content.Load <MenuDescription>("Content\\Menu\\" + name); this.visible = true; this.isActive = true; steuerung = new MenuControl(this, game); //Erstellung des Hauptmenüs MainList Menu = new MainList(game, name, menuXml, true); CurrentList = Menu; shifts = Menu; this.scoring = score; if (score) { this.startscoring = true; this.score = game.GameStates.Score; } this.DrawOrder = (int)DrawOrderType.Menu; }
//Constructor public Menu(ICanyonShooterGame game, string name) : base(game as Game) { assetName = "Config\\" + name + ".xml"; this.game = game; this.currentMenu = name; menuXml = game.Content.Load <MenuDescription>("Content\\Menu\\" + name); this.visible = true; this.isActive = true; steuerung = new MenuControl(this, game); //Prompts = PromptCollection.getInstance(); //Erstellung des Hauptmenüs MainList Menu = new MainList(game, name, menuXml, true); CurrentList = Menu; shifts = Menu; //this.OptionMenu = new Option(game,this.menuXml); this.DrawOrder = (int)DrawOrderType.Menu; }