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;
            }
        }
Пример #2
0
        public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "gSys2": data.Decode_Dictionary(out presentationSystemPerNodeConfigs); break;

            // DEPRECATED (TMP)
            case "gSys":
                Dictionary <string, CfgData> dicTmp;
                data.Decode_Dictionary(out dicTmp);
                foreach (var pair in dicTmp)
                {
                    var cfg = new PresentationSystemConfigurations();
                    pair.Value.DecodeInto(out cfg.perNodeConfigs);
                    presentationSystemPerNodeConfigs[pair.Key] = cfg;
                }
                break;
            }
        }
Пример #3
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;
            }
        }
Пример #4
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "n": name = data.ToString(); break;

            case "u": _usage = data.ToInt(); break;

            case "e": data.Decode_Dictionary(out enm); break;

            case "c":  data.ToList(out _myCategories); break;
            }
        }