Exemple #1
0
            public override bool Inspect()
            {
                inspected = this;

                var changed = false;

                if (data.CountForInspector() > 0)
                {
                    if (data.HasNestedData)
                    {
                        (name + " " + data.GetNameForInspector()).foldout(ref foldedOut);
                    }

                    DecodeOrInspectJson(ref data, foldedOut, name).changes(ref changed);
                }
                else
                {
                    (name + " " + data.GetNameForInspector()).write();
                }

                pegi.nl();

                inspected = null;

                return(changed);
            }
Exemple #2
0
 public string NameForDisplayPEGI() => name + (data.HasNestedData ? "{}" : data.GetNameForInspector());