Example #1
0
        public void Decode(string key, CfgData data)
        {
            switch (key)
            {
            //case "imgs": data.Decode_List(out imgMetas, this); break;
            case "sch": data.ToInt(ref selectedColorScheme); break;

            //case "mats": data.Decode_List(out matMetas, this); break;
            case "pals": data.ToList(out colorSchemes); break;

            case "cam": if (PainterCamera.Inst)
                {
                    PainterCamera.Inst.DecodeFull(data);
                }
                break;

            case "Vpck": data.ToList(out meshPackagingSolutions); break;

            case "hd": hideDocumentation = data.ToBool(); break;

            case "iid": data.ToInt(ref _inspectedImgData); break;

            case "isfs": data.ToInt(ref _inspectedList); break;

            case "im": data.ToInt(ref _inspectedMaterial); break;

            case "id": data.ToInt(ref _inspectedDecal); break;

            case "is": data.ToInt(ref inspectedItems); break;

            case "e": toolEnabled = data.ToBool(); break;
            }
        }
Example #2
0
            public virtual void Decode(string tag, CfgData data)
            {
                switch (tag)
                {
                case "pre": preNewLine = data.ToBool(); break;

                case "post": postNewLine = data.ToBool(); break;
                }
            }
        public override void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "v": _edgeValue = data.ToFloat(); break;

            case "doCol": _alsoDoColor = data.ToBool(); break;

            case "fe": _editingFlexibleEdge = data.ToBool(); break;
            }
        }
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "expVis": data.Decode(out _nodeEnteredVisuals); break;

            case "subVis": data.Decode(out _nodeActiveDefaultVisuals); break;

            case "disVis": data.Decode(out _nodeInactiveVisuals); break;

            case "bg_cfg": source.visualStyleConfigs[BoxButtons.classTag] = data; break;

            case "bg_cfgs": data.Decode_Dictionary(out source.visualStyleConfigs); break;

            case "URL": imageUrl = data.ToString(); break;

            case "imgScl": _imageScaling = data.ToFloat(); break;

            case "imgMd": _mode = (ImageMode)data.ToInt(); break;

            case "hidTxt": _hideLabel = data.ToBool(); break;

            case "m": MeshObjectGetOrCreate().DecodeFull(data); break;
            }
        }
Example #5
0
 public override void Decode(string key, CfgData data)
 {
     switch (key)
     {
     case "byUV": _selectingUVbyNumber = data.ToBool(); break;
     }
 }
Example #6
0
 public override void Decode(string key, CfgData data)
 {
     switch (key)
     {
     case "rec": showRecording = data.ToBool(); break;
     }
 }
Example #7
0
        public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "n": _name = data.ToString(); break;

            case "ind": _index = data.ToInt(); break;

            case "t":
                data.Decode(out _triggers);
                foreach (var t in _triggers)
                {
                    t.groupIndex   = _index;
                    t.triggerIndex = _triggers.currentEnumerationIndex;
                }
                break;

            case "br": _browsedGroup = data.ToInt(); break;

            case "show": _showInInspectorBrowser = data.ToBool(); break;

            case "last": _lastUsedTrigger = data.ToInt(); break;

            case "auth": authorName = data.ToString(); break;
            }
        }
Example #8
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;
            }
        }
Example #9
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;
            }
        }
        public override void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "inM": _addToTrianglesAndLines = data.ToBool(); break;

            case "dm": _detectionMode = (DetectionMode)data.ToInt(0); break;
            }
        }
Example #11
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "b": compareValue = data.ToBool(); break;

            case "ind": data.Decode(DecodeIndex); break;
            }
        }
Example #12
0
            public override void Decode(string key, CfgData data)
            {
                switch (key)
                {
                case "b": data.Decode(base.Decode); break;    //data.DecodeInto(base.Decode); break;

                case "gotVol": expectingAVolume = data.ToBool(); break;
                }
            }
Example #13
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "t": NameForPEGI = data.ToString(); break;

            case "txts": data.Decode_Dictionary(out texts); break;

            case "na": needsReview = data.ToBool(); break;
            }
        }
        public void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "s": data.ToInt(ref _sourceRole); break;

            case "c": data.ToInt(ref sourceChannel); break;

            case "f": flip = data.ToBool(); break;
            }
        }
Example #15
0
        public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "bkSrv": books.DecodeFull(data); break;

            case "ptUI": showPlaytimeUI = data.ToBool(); break;

            case "us": data.ToList(out users.all); break;

            case "curUser": users.LoadUser(data.ToString()); break;
            }
        }
        public override void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "vrt": data.ToList(out meshPoints); break;

            case "tri": data.ToList(out triangles); break;

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

            case "grM": data.ToInt(ref maxGroupIndex); break;

            case "sub": data.ToInt(ref subMeshCount); break;

            case "wei": gotBoneWeights = data.ToBool(); break;

            case "gcls": data.DecodeInto(out groupColors); break;

            case "bv": data.ToList(out baseVertex); break;

            case "biP": data.Decode_Array(out bindPoses); break;

            case "UV2dR": data.ToInt(ref uv2DistributeRow); break;

            case "UV2cur": data.ToInt(ref uv2DistributeCurrent); break;

            case "sctdUV":
                selectedUv = meshPoints[data.ToInt(0)].vertices[0]; break;

            case "sctdTris":
                selectedTriangle = triangles[data.ToInt(0)]; break;

            default:
                if (MeshToolBase.AllTools.IsNullOrEmpty())
                {
                    break;
                }

                foreach (var t in MeshToolBase.allToolsWithPerMeshData)
                {
                    var mt = t as MeshToolBase;
                    if (mt == null || !mt.StdTag.Equals(key))
                    {
                        continue;
                    }
                    mt.DecodeFull(data);
                    break;
                }
                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;
            }
        }
Example #18
0
        public virtual void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "en": enabled = data.ToBool(); break;

            case "t": _targetIndex = data.ToInt(0); if (!enabled)
                {
                    InitVals();
                }
                break;

            case "vals": data.ToList(out links); sameSizeDataIndex = -1; break;

            case "sameSize": sameSizeDataIndex = data.ToInt(0); InitVals(); break;
            }
        }
Example #19
0
        public override void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "gtuv": projectionUv = data.ToBool(); break;

            case "offset": offset = data.ToVector2(); break;

            case "tile": tiling = data.ToVector2(); break;

            case "nrmWrap": projectorNormalThreshold01 = data.ToFloat();  break;

            case "fr": projectFront = true; break;

            case "mp": meshProcessors = true; break;
            }
        }
        public override void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "tf": data.ToList(out targetFields); break;

            case "af": data.ToList(out atlasFields); break;

            case "sf": data.ToList(out _srcFields); break;

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

            case "rgb": _sRgb = data.ToBool(); break;

            case "s":  data.ToInt(ref _textureSize); break;

            case "as":  data.ToInt(ref _atlasSize); break;
            }
        }
        public void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "mdls":
                Modules.DecodeFull(data);
                break;

            case "invCast":
                invertRayCast = data.ToBool();
                break;

            case "m":
                SavedEditableMesh = data;
                break;

            case "prn":
                selectedMeshProfile = data.ToString();
                break;
            }
        }