public OptionsMenuScreen(MinesweeperGame game) : base(game, "Options:") { oldOptions = new Options(Game.options.FlagWithPlay, Game.options.UseTouch, Game.options.SelectedSkin); flagButton = new MenuItem("Flag tiles with Play button", true, true, true); flagButton.Clicked += () => Game.options.FlagWithPlay = !Game.options.FlagWithPlay; Add(0, flagButton); useTouchMI = new MenuItem("Touch control off", false, false, true); useTouchMI.Clicked += () => Game.options.UseTouch = !Game.options.UseTouch; Add(1, useTouchMI); changeSkin = new MenuItem("Change Skin"); changeSkin.Clicked += () => ScreenManager.AddScreen(new SkinMenuScreen(Game)); Add(2, changeSkin); back = new MenuItem("Back"); back.Clicked += new ItemClick(Back); Add(5, back); }
protected override void Initialize() { IAsyncResult syncResult = Guide.BeginShowStorageDeviceSelector(null, null); storageDevice = Guide.EndShowStorageDeviceSelector(syncResult); //if (!storageDevice.IsConnected) Exit(); container = storageDevice.OpenContainer("Minesweeper"); skins = new Dictionary<string, Skin>(); bestTimes = new Dictionary<Difficulty, int>(4); bestTimes.Add(Difficulty.Beginner, 999); bestTimes.Add(Difficulty.Intermediate, 999); bestTimes.Add(Difficulty.Expert, 999); bestTimes.Add(Difficulty.Zune, 999); GetBestTimes(); options = new Options(true, false, "Blue"); base.Initialize(); }