Exemplo n.º 1
0
        public virtual bool Inspect()
        {
            var changed = false;

            #if UNITY_EDITOR
            UnityEngine.Object newProfile = null;

            if ("Drop New Profile Here:".edit(ref newProfile).nl(ref changed))
            {
                var mSol = new MeshPackagingProfile();
                mSol.Decode(FileLoadUtils.TryLoadAsTextAsset(newProfile));

                PainterCamera.Data.meshPackagingSolutions.Add(mSol);
                PlaytimePainter.inspected.selectedMeshProfile = PainterCamera.Data.meshPackagingSolutions.Count - 1;
            }
            #endif

            "Profile Name: ".edit(80, ref name);

            #if UNITY_EDITOR
            var path = Path.Combine(PainterCamera.Data.meshesFolderName, FolderName);

            if (icon.Save.Click("Save To:" + path, 25).nl())
            {
                this.SaveToAssets(path, name);
                UnityUtils.RefreshAssetDatabase();
                (name + " Saved to " + path).showNotificationIn3D_Views();
            }
            #endif

            foreach (var s in dtaLnks)
            {
                s.Inspect().nl(ref changed);
            }

            return(changed);
        }
Exemplo n.º 2
0
        public IEnumerable <string> StrokeRecordingsFromFile(string filename)
        {
            string data;

            if (!Recordings.TryGetValue(filename, out data))
            {
                data = FileLoadUtils.LoadJsonFromPersistentPath(vectorsFolderName, filename);
                Recordings.Add(filename, data);
            }

            var cody    = new CfgDecoder(data);
            var strokes = new List <string>();

            foreach (var t in cody)
            {
                var d = cody.GetData();
                switch (t)
                {
                case "strokes": d.Decode_List(out strokes); break;
                }
            }

            return(strokes);
        }
Exemplo n.º 3
0
 public void Load() => FileLoadUtils.LoadJsonFromPersistentPathOverride(this, cfg.leaderBoardFileName, cfg.savedGameFolderName);
Exemplo n.º 4
0
 public void Parse_metadata_from_xml_test_idp()
 {
     var metadata = new Saml20MetadataDocument().Load(FileLoadUtils.GetStream(Path.Combine("Protocol", "MetadataDocs", "inlogik-test-adfs-metadata.xml")));
     var a        = metadata.EntityId;
 }
Exemplo n.º 5
0
 public void Parse_metadata_from_xml()
 {
     var metadata = new Saml20MetadataDocument().Load(FileLoadUtils.GetStream(Path.Combine("Protocol", "MetadataDocs", "metadata-HAIKU.xml")));
 }