Exemple #1
0
        protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            ele.TryPathTo("Type", true, out subEle);
            subEle.Value = Type.ToString();

            ele.TryPathTo("X", true, out subEle);
            subEle.Value = X.ToString();

            ele.TryPathTo("Y", true, out subEle);
            subEle.Value = Y.ToString();

            ele.TryPathTo("Width", true, out subEle);
            subEle.Value = Width.ToString();

            ele.TryPathTo("Height", true, out subEle);
            subEle.Value = Height.ToString();

            ele.TryPathTo("Orientation", true, out subEle);
            subEle.Value = Orientation.ToString("G15");

            ele.TryPathTo("Font1/Font", true, out subEle);
            subEle.Value = Font1.ToString();

            ele.TryPathTo("Font1/Color/Red", true, out subEle);
            subEle.Value = Font1Red.ToString("G15");

            ele.TryPathTo("Font1/Color/Green", true, out subEle);
            subEle.Value = Font1Green.ToString("G15");

            ele.TryPathTo("Font1/Color/Blue", true, out subEle);
            subEle.Value = Font1Blue.ToString("G15");

            ele.TryPathTo("Font1/Alignment", true, out subEle);
            subEle.Value = Font1Alignment.ToString();

            ele.TryPathTo("Unknown1", true, out subEle);
            subEle.Value = Unknown1.ToHex();

            ele.TryPathTo("Font2/Font", true, out subEle);
            subEle.Value = Font2.ToString();

            ele.TryPathTo("Font2/Color/Red", true, out subEle);
            subEle.Value = Font2Red.ToString("G15");

            ele.TryPathTo("Font2/Color/Green", true, out subEle);
            subEle.Value = Font2Green.ToString("G15");

            ele.TryPathTo("Font2/Color/Blue", true, out subEle);
            subEle.Value = Font2Blue.ToString("G15");

            ele.TryPathTo("Unknown2", true, out subEle);
            subEle.Value = Unknown2.ToHex();

            ele.TryPathTo("Stats", true, out subEle);
            subEle.Value = Stats.ToString();
        }
Exemple #2
0
        protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            ele.TryPathTo("IsAnimatable", true, out subEle);
            subEle.Value = IsAnimatable.ToString();

            ele.TryPathTo("Duration", true, out subEle);
            subEle.Value = Duration.ToString("G15");

            ele.TryPathTo("HDR/EyeAdaptSpeed/Mult", true, out subEle);
            subEle.Value = HDREyeAdaptSpeedMult.ToString();

            ele.TryPathTo("HDR/EyeAdaptSpeed/Add", true, out subEle);
            subEle.Value = HDREyeAdaptSpeedAdd.ToString();

            ele.TryPathTo("HDR/Bloom/BlurRadius/Mult", true, out subEle);
            subEle.Value = HDRBloomBlurRadiusMult.ToString();

            ele.TryPathTo("HDR/Bloom/BlurRadius/Add", true, out subEle);
            subEle.Value = HDRBloomBlurRadiusAdd.ToString();

            ele.TryPathTo("HDR/Bloom/Threshold/Mult", true, out subEle);
            subEle.Value = HDRBloomThresholdMult.ToString();

            ele.TryPathTo("HDR/Bloom/Threshold/Add", true, out subEle);
            subEle.Value = HDRBloomThresholdAdd.ToString();

            ele.TryPathTo("HDR/Bloom/Scale/Mult", true, out subEle);
            subEle.Value = HDRBloomScaleMult.ToString();

            ele.TryPathTo("HDR/Bloom/Scale/Add", true, out subEle);
            subEle.Value = HDRBloomScaleAdd.ToString();

            ele.TryPathTo("HDR/TargetLum/Min/Mult", true, out subEle);
            subEle.Value = HDRTargetLumMinMult.ToString();

            ele.TryPathTo("HDR/TargetLum/Min/Add", true, out subEle);
            subEle.Value = HDRTargetLumMinAdd.ToString();

            ele.TryPathTo("HDR/TargetLum/Max/Mult", true, out subEle);
            subEle.Value = HDRTargetLumMaxMult.ToString();

            ele.TryPathTo("HDR/TargetLum/Max/Add", true, out subEle);
            subEle.Value = HDRTargetLumMaxAdd.ToString();

            ele.TryPathTo("HDR/SunlightScale/Mult", true, out subEle);
            subEle.Value = HDRSunlightScaleMult.ToString();

            ele.TryPathTo("HDR/SunlightScale/Add", true, out subEle);
            subEle.Value = HDRSunlightScaleAdd.ToString();

            ele.TryPathTo("HDR/SkyScale/Mult", true, out subEle);
            subEle.Value = HDRSkyScaleMult.ToString();

            ele.TryPathTo("HDR/SkyScale/Add", true, out subEle);
            subEle.Value = HDRSkyScaleAdd.ToString();

            ele.TryPathTo("Unknown1", true, out subEle);
            subEle.Value = Unknown1.ToHex();

            ele.TryPathTo("Cinematic/Saturation/Mult", true, out subEle);
            subEle.Value = CinematicSaturationMult.ToString();

            ele.TryPathTo("Cinematic/Saturation/Add", true, out subEle);
            subEle.Value = CinematicSaturationAdd.ToString();

            ele.TryPathTo("Cinematic/Brightness/Mult", true, out subEle);
            subEle.Value = CinematicBrightnessMult.ToString();

            ele.TryPathTo("Cinematic/Brightness/Add", true, out subEle);
            subEle.Value = CinematicBrightnessAdd.ToString();

            ele.TryPathTo("Cinematic/Contrast/Mult", true, out subEle);
            subEle.Value = CinematicContrastMult.ToString();

            ele.TryPathTo("Cinematic/Contrast/Add", true, out subEle);
            subEle.Value = CinematicContrastAdd.ToString();

            ele.TryPathTo("Unknown2", true, out subEle);
            subEle.Value = Unknown2.ToHex();

            ele.TryPathTo("TintColor", true, out subEle);
            TintColor.WriteXML(subEle, master);

            ele.TryPathTo("BlurRadius", true, out subEle);
            subEle.Value = BlurRadius.ToString();

            ele.TryPathTo("DoubleVisionStrength", true, out subEle);
            subEle.Value = DoubleVisionStrength.ToString();

            ele.TryPathTo("RadialBlur/Strength", true, out subEle);
            subEle.Value = RadialBlurStrength.ToString();

            ele.TryPathTo("RadialBlur/RampUp", true, out subEle);
            subEle.Value = RadialBlurRampUp.ToString();

            ele.TryPathTo("RadialBlur/Start", true, out subEle);
            subEle.Value = RadialBlurStart.ToString();

            ele.TryPathTo("RadialBlur/UseTarget", true, out subEle);
            subEle.Value = RadialBlurUseTarget.ToString();

            ele.TryPathTo("RadialBlur/Center/X", true, out subEle);
            subEle.Value = RadialBlurCenterX.ToString();

            ele.TryPathTo("RadialBlur/Center/Y", true, out subEle);
            subEle.Value = RadialBlurCenterY.ToString();

            ele.TryPathTo("DepthOfField/Strength", true, out subEle);
            subEle.Value = DepthOfFieldStrength.ToString();

            ele.TryPathTo("DepthOfField/Distance", true, out subEle);
            subEle.Value = DepthOfFieldDistance.ToString();

            ele.TryPathTo("DepthOfField/Range", true, out subEle);
            subEle.Value = DepthOfFieldRange.ToString();

            ele.TryPathTo("DepthOfField/UseTarget", true, out subEle);
            subEle.Value = DepthOfFieldUseTarget.ToString();

            ele.TryPathTo("RadialBlur/RampDown", true, out subEle);
            subEle.Value = RadialBlurRampDown.ToString();

            ele.TryPathTo("RadialBlur/DownStart", true, out subEle);
            subEle.Value = RadialBlurDownStart.ToString();

            ele.TryPathTo("FadeColor", true, out subEle);
            FadeColor.WriteXML(subEle, master);

            ele.TryPathTo("MotionBlurStrength", true, out subEle);
            subEle.Value = MotionBlurStrength.ToString();
        }