private void ChooseType1()
 {
     ClearItems();
     game.GameplayMode = ChromathudWin.Gameplay.GameplayMode.Timed;
     Spinner spin = new Spinner(this) { Label = "Minutes", Min = 1, Number = 1, Max = 10 };
     AddItem(spin);
     MenuItemSpec go = new MenuItemSpec(Strings.Play, () => { game.MinuteLimit = spin.Number; startGame(); }, Color.White);
     AddItem(new MenuItem(this, go));
     selectedItem = items.Last();
     selectedItem.Selected = true;
     base.SortItems();
 }
Пример #2
0
 private void ChooseLevel()
 {
     ClearItems();
     game.GameplayMode = ChromathudWin.Gameplay.GameplayMode.Endless;
     Spinner spin = new Spinner(this) { Label = "Level", Min = 1, Number = 1, Max = 7 };
     AddItem(spin);
     MenuItemSpec go = new MenuItemSpec(Strings.Play, () => { game.Level = spin.Number; startGame(); }, Color.White);
     AddItem(new MenuItem(this, go));
     Select(items.Last());
     base.SortItems();
 }