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; } }
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; } }
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 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; } }