Exemple #1
0
        public static void DecodeWeather(string tg, CfgData data)
        {
            switch (tg)
            {
            case "sh": shadowStrength.TargetValue = data.ToFloat(); break;

            case "sdst": shadowDistance.DecodeFull(data); break;

            case "sc": skyColor.targetValue = data.ToColor(); break;

            case "fg": RenderSettings.fog = data.ToBool(); break;

            case "fogD": fogDistance.DecodeFull(data); break;

            case "fogDen": fogDensity.DecodeFull(data); break;

            case "fogCol": fogColor.targetValue = data.ToColor(); break;

            case "lr": mainLightRotation.DecodeFull(data); break;

            case "lcol": mainLightColor.DecodeFull(data); break;

            case "lint": mainLightIntensity.DecodeFull(data); break;

            case "br": brightness.DecodeFull(data); break;

            case "bl": colorBleed.DecodeFull(data); break;
            }
        }
Exemple #2
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "bgUp": bgColUp.TargetValue = data.ToColor(); break;

            case "bgc": bgColCnter.TargetValue = data.ToColor(); break;

            case "bgDwn": bgColDown.TargetValue = data.ToColor(); break;
            }
        }
Exemple #3
0
        public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "tch": data.ToList(out textChunks, TextChunkBase.all); break;

            case "lnkCol": linksColor = data.ToColor(); break;

            case "tx": textColor = data.ToColor(); break;
            }
        }
        public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "sc": targetSize = data.ToVector3(); break;

            case "pos": targetLocalPosition = data.ToVector3(); break;

            case "col": targetColor = data.ToColor(); break;

            case "tCol": targetTextColor = data.ToColor(); break;
            }
        }
        public override void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "ch": data.ToList(out _channel); break;

            case "c": _isColor = data.ToBool(); break;

            case "n": _name = data.ToString(); break;

            case "b": bumpStrength = data.ToFloat(); break;

            case "fc": fillColor = data.ToColor(); break;
            }
        }
Exemple #6
0
        public override void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "typeGPU": data.ToInt(ref _inGpuBrushType); break;

            case "typeCPU": data.ToInt(ref _inCpuBrushType); break;

            case "size2D": brush2DRadius = data.ToFloat(); break;

            case "size3D": brush3DRadius = data.ToFloat(); break;

            case "useMask": useMask = data.ToBool(); break;

            case "mask": mask = (ColorMask)data.ToInt(0); break;

            case "modeCPU":  data.ToInt(ref _inCpuBlitMode); break;

            case "modeGPU":  data.ToInt(ref _inGpuBlitMode); break;

            case "bc": Color = data.ToColor(); break;

            case "source":  data.ToInt(ref selectedSourceTexture); break;

            case "blur": blurAmount = data.ToFloat(); break;

            case "decA": decalAngle = data.ToFloat(); break;

            case "decNo":  data.ToInt(ref selectedDecal); break;

            case "Smask":  data.ToInt(ref selectedSourceMask); break;

            case "maskTil": maskTiling = data.ToFloat(); break;

            case "maskFlip": flipMaskAlpha = data.ToBool(); break;

            case "hard": hardness = data.ToFloat(); break;

            case "Speed": _dFlow.Value = data.ToFloat(); break;

            case "dSpeed": _dFlow.Decode(data); break;

            case "dyn": data.Decode(out brushDynamic, BrushDynamic.Base.all); break;

            case "maskOff": maskOffset = data.ToVector2(); break;
            }
        }