Example #1
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 #2
0
        public virtual void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "n": name = data.ToString(); break;

            case  "d": description = data.ToString(); break;

            case "vc": data.Decode(out visibilityConditions); break;
            }
        }
Example #3
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "b": data.Decode(base.Decode); break;     //data.Decode_Base(base.Decode, this); break;

            case "t": type = (BookLinkType)data.ToInt(); break;

            case "lnk": linkedBookName = data.ToString(); break;

            case "au": linkedBookAuthor = data.ToString(); break;

            case "ep": bookEntryPoint = data.ToString(); break;
            }
        }
Example #4
0
 public override void Decode(string tg, CfgData data)
 {
     switch (tg)
     {
     case "t": text = data.ToString(); break;
     }
 }
Example #5
0
 public virtual void Decode(string tg, CfgData data)
 {
     switch (tg)
     {
     case "auth": authorName = data.ToString(); break;
     }
 }
Example #6
0
 public void Decode(string tg, CfgData data)
 {
     switch (tg)
     {
     case "tg": tag = data.ToString(); 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 #8
0
        public void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "n": paletteName = data.ToString(); break;

            case "cols": data.ToList(out _colors); break;
            }
        }
Example #9
0
        public virtual void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "n": name = data.ToString(); break;

            case "sln":  data.ToList(out dtaLnks); break;
            }
        }
Example #10
0
            public override void Decode(string tg, CfgData data)
            {
                switch (tg)
                {
                case "b": data.Decode(base.Decode); break;     //data.Decode_Base(base.Decode, this); break;

                case "t": text = data.ToString(); break;
                }
            }
Example #11
0
 private void miCopySetting_Click(object sender, EventArgs e)
 {
     if (cmGameSetting.SourceControl is ISettingControl setting)
     {
         var cfgData = new CfgData();
         cfgData.AddCommentRow(setting.Model.Name);
         cfgData.AddOrUpdateRow(setting.Model.Key, setting.Value);
         Clipboard.SetText(cfgData.ToString());
     }
 }
Example #12
0
        public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "n": name = data.ToString(); break;

            case "el": data.ToList(out _elements); break;

            case "i": _inspectedElement = data.ToInt(); break;
            }
        }
Example #13
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "txs": data.ToList(out options, all); break;

            case "t": options.Add(new StringSentence(data.ToString())); break;

            case "ins": inspectedSentence = data.ToInt(); break;
            }
        }
Example #14
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "m":   targetMusic = data.ToString(); break;

            case "tr":  transitionType = (TransitionType)data.ToInt(); break;

            case "len": _transitionLength = data.ToFloat(); break;
            }
        }
Example #15
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;
            }
        }
Example #16
0
        public virtual void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "n": NameForPEGI = data.ToString(); break;

            case "s": data.ToList(out subCategories); break;

            case "i":  IndexForPEGI = data.ToInt(); break;

            case "in": _inspected = data.ToInt(); break;
            }
        }
Example #17
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;
            }
        }
Example #18
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;
            }
        }
Example #19
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "b": data.Decode(base.Decode); break;    //data.Decode_Base(base.Decode, this); break;

            case "bg": visualStyleTag = data.ToString(); break;

            case "sub": data.ToList(out coreNodes); break;

            case "gn":  data.ToList(out gameNodes, GameNodeBase.all); 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 #22
0
        public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "goto": nextOne = data.ToString(); break;

            case "cnd": data.Decode(out conditions); break;

            case "t": text.DecodeFull(data); break;

            case "ts2b": text2.DecodeFull(data); break;

            case "res": data.ToList(out results); break;

            case "ins": _inspectedItems = data.ToInt(); break;
            }
        }
Example #23
0
        public virtual void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "name": name = data.ToString(); break;

            case "cond": conditions.DecodeFull(data); break;

            case "sub": data.ToList(out subBranches); break;

            case "el": data.ToList(out elements); break;

            case "ie": _inspectedElement = data.ToInt(); break;

            case "is": _inspectedItems = data.ToInt(); break;

            case "br": _inspectedBranch = data.ToInt(); 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;
            }
        }
Example #25
0
        public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "ref": referenceName = data.ToString(); break;

            case "Conds": data.Decode(out conditions); break;

            case "txts": texts.DecodeFull(data); break;

            case "opt": data.ToList(out choices); break;

            case "fin": data.ToList(out finalResults); break;

            case "is": _inspectedItems = data.ToInt(); break;

            case "bc": _inspectedChoice = data.ToInt(); break;

            case "ir": _inspectedResult = data.ToInt(); 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;
            }
        }