public override string ToString() { string result = mName; result += " (" + mSchool.ToString() + ") "; return(result); }
protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("Flags", true, out subEle); subEle.Value = MagicEffectFlags.ToString(); ele.TryPathTo("BaseCost", true, out subEle); subEle.Value = BaseCost.ToString("G15"); ele.TryPathTo("AssociatedItem", true, out subEle); AssociatedItem.WriteXML(subEle, master); ele.TryPathTo("MagicSchool", true, out subEle); subEle.Value = MagicSchool.ToString(); ele.TryPathTo("ResistanceType", true, out subEle); subEle.Value = ResistanceType.ToString(); ele.TryPathTo("Unknown", true, out subEle); subEle.Value = Unknown.ToString(); WriteUnusedXML(ele, master); ele.TryPathTo("Light", true, out subEle); Light.WriteXML(subEle, master); ele.TryPathTo("ProjectileSpeed", true, out subEle); subEle.Value = ProjectileSpeed.ToString("G15"); ele.TryPathTo("EffectShader", true, out subEle); EffectShader.WriteXML(subEle, master); ele.TryPathTo("ObjectDisplayShader", true, out subEle); ObjectDisplayShader.WriteXML(subEle, master); ele.TryPathTo("EffectSound", true, out subEle); EffectSound.WriteXML(subEle, master); ele.TryPathTo("BoltSound", true, out subEle); BoltSound.WriteXML(subEle, master); ele.TryPathTo("HitSound", true, out subEle); HitSound.WriteXML(subEle, master); ele.TryPathTo("AreaSound", true, out subEle); AreaSound.WriteXML(subEle, master); ele.TryPathTo("ConstantEffectEnchantmentFactor", true, out subEle); subEle.Value = ConstantEffectEnchantmentFactor.ToString("G15"); ele.TryPathTo("ConstantEffectBarterFactor", true, out subEle); subEle.Value = ConstantEffectBarterFactor.ToString("G15"); ele.TryPathTo("Archetype", true, out subEle); subEle.Value = Archetype.ToString(); ele.TryPathTo("ActorValue", true, out subEle); subEle.Value = ActorValue.ToString(); }
public MagicTab(MagicSchool school) { TabButton.LibraryFile = LibraryFile.Interface; TabButton.Hint = school.ToString(); Border = true; switch (school) { case MagicSchool.Passive: TabButton.Index = 54; break; case MagicSchool.WeaponSkills: TabButton.Index = 65; break; case MagicSchool.Neutral: TabButton.Index = 64; break; case MagicSchool.Fire: TabButton.Index = 56; break; case MagicSchool.Ice: TabButton.Index = 57; break; case MagicSchool.Lightning: TabButton.Index = 58; break; case MagicSchool.Wind: TabButton.Index = 59; break; case MagicSchool.Holy: TabButton.Index = 61; break; case MagicSchool.Dark: TabButton.Index = 62; break; case MagicSchool.Phantom: TabButton.Index = 60; break; case MagicSchool.Combat: TabButton.Index = 66; break; case MagicSchool.Assassination: TabButton.Index = 67; break; case MagicSchool.None: TabButton.Index = 55; break; } ScrollBar = new DXVScrollBar { Parent = this, }; ScrollBar.ValueChanged += (o, e) => UpdateLocations(); }
//魔法学派对应技能 Skill SchoolToSkill(MagicSchool _school) { //如果是全派系通用魔法,则遍历所有派系选出等级最高的 //if(_school == MagicSchool.All) return(SkillManager.GetSkill("Magic_" + _school.ToString())); }
//魔法学派对应技能 Skill SchoolToSkill(MagicSchool _school) { return(SkillManager.GetSkill("Magic_" + _school.ToString())); }