public ProjectEternityStandardPartEditor(string FilePath, object[] Params) : this() { this.FilePath = FilePath; if (!File.Exists(FilePath)) { FileStream fs = File.Create(FilePath); fs.Close(); ActiveSkill = new UnitStandardPart(); SaveItem(FilePath, FilePath); } LoadPart(this.FilePath); }
private void LoadPart(string PartPath) { string Name = FilePath.Substring(0, FilePath.Length - 4).Substring(29); this.Text = Name + " - Project Eternity Standard Part Editor"; ActiveSkill = new UnitStandardPart(PartPath, DicRequirement, DicEffect); txtDescription.Text = ActiveSkill.Skill.Description; for (int L = 0; L < ActiveSkill.Skill.ListSkillLevel[0].ListActivation.Count; L++) { lstActivations.Items.Add("Activation " + (lstActivations.Items.Count + 1)); } }