Exemplo n.º 1
0
        public PlayerRegistration()
        {
            menu = new MenuDialog("Inscription", "Valider", continueName: "Continuer ...");

            passwordItem           = new MenuDialogItem(Color.Red + "Mot de passe");
            passwordItem.Selected += PasswordSelect;

            emailItem           = new MenuDialogItem(Color.Red + "Email");
            emailItem.Selected += EmailSelect;

            menu.AddItem(passwordItem);
            menu.AddItem(emailItem);
        }
        public PlayerCharacterCreation()
        {
            menu = new MenuDialog("Création de personnage", "Valider", continueName: "Continuer ...");

            nameItem           = new MenuDialogItem(Color.Red + "Nom");
            nameItem.Selected += NameSelect;

            ageItem           = new MenuDialogItem(Color.Red + "Age");
            ageItem.Selected += AgeSelect;

            sexItem           = new MenuDialogItem(Color.Red + "Sexe");
            sexItem.Selected += SexSelect;

            menu.AddItem(nameItem);
            menu.AddItem(ageItem);
            menu.AddItem(sexItem);
        }