Exemplo n.º 1
0
        public void LoadSplineFromFileName(string fileName)
        {
            EditorData.LoadSplines(fileName);

            try
            {
                // See if there is a settings file
                string settingsFile = FileManager.RemoveExtension(fileName) + ".splsetx";

                if (FileManager.FileExists(settingsFile))
                {
                    SplineEditorSettingsSave sess = FileManager.XmlDeserialize <SplineEditorSettingsSave>(settingsFile);

                    sess.BoundsCamera.SetCamera(EditorData.BoundsCamera);
                    sess.ViewCamera.SetCamera(SpriteManager.Camera);
                }
            }
            catch (Exception e)
            {
                // no big deal, just a settings file
            }
        }