Exemplo n.º 1
0
        private object selectPickUpTarget(object[] objects)
        {
            Menu menu = new LetterMenu(Translator.Instance["pick-up"], objects, messageWindow);

            if (menu.ShowMenu() == MenuResult.OK)
            {
                GameController.Instance.MessageWindow.Clear();
                return(menu.SelectedItem);
            }
            else
            {
                GameController.Instance.MessageWindow.Clear();
                return(null);
            }
        }
Exemplo n.º 2
0
 private void initProfession() {
     VH.Engine.Display.Menu professionMenu = new LetterMenu(
         Translator.Instance["choose-profession"],
         new object[] { 
             new Custodian(Pc),
             new Quack(Pc),
             new Gravedigger(Pc)
         },
         MessageWindow,
         false
     );
     professionMenu.ShowMenu();
     ((VhPc)Pc).Profession = (AbstractProfession)professionMenu.SelectedItem;
     ((VhPc)Pc).Profession.InitBeing();
     foreach (Skill skill in ((VhPc)Pc).Skills) {
         skill.Value = Rng.Random.Next(skill.MaxValue) + 1;
     }
     Pc.Health = Pc.MaxHealth;
 }