Exemplo n.º 1
0
 public SavedPetTalentSpec(String name, PetTalentsBase talentSpec, PETFAMILYTREE tree, int pts)
 {
     Name = name;
     Tree = pts;
     if (talentSpec != null)
     {
         Spec  = talentSpec.ToString();
         Class = tree;
     }
 }
        public FormSavePetTalentSpec(PetTalentsBase spec, PETFAMILYTREE newClass, int tree)
        {
            InitializeComponent();
            PetTalents = spec;
            Tree = tree;
            Class = newClass;
            CB_Trees.SelectedItem = Class;

            SavedPetTalentSpecList saved = SavedPetTalentSpec.SpecsFor(Class);
            if (saved.Count > 0) {
                CB_TalentSpecs.ItemsSource = saved;
                CB_TalentSpecs.SelectedIndex = 0;
            } else {
                CB_TalentSpecs.IsEnabled = false;
            }
        }
Exemplo n.º 3
0
        public FormSavePetTalentSpec(PetTalentsBase spec, PETFAMILYTREE newClass, int tree)
        {
            InitializeComponent();
            PetTalents            = spec;
            Tree                  = tree;
            Class                 = newClass;
            CB_Trees.SelectedItem = Class;

            SavedPetTalentSpecList saved = SavedPetTalentSpec.SpecsFor(Class);

            if (saved.Count > 0)
            {
                CB_TalentSpecs.ItemsSource   = saved;
                CB_TalentSpecs.SelectedIndex = 0;
            }
            else
            {
                CB_TalentSpecs.IsEnabled = false;
            }
        }
Exemplo n.º 4
0
 public SavedPetTalentSpec(String name, PetTalentsBase talentSpec, PetFamilyTree tree, int pts)