private void selectAnimation() { if (dSelectAnimation.ShowDialog() == DialogResult.OK) { string basefile = Path.GetDirectoryName(dSelectAnimation.FileName); string filename = Path.GetFileName(dSelectAnimation.FileName); FileSystem fs = new FileSystem(); fs.addRoot(basefile); addAnimation(Path.GetFileNameWithoutExtension(filename), AnimationFile.Load(fs, filename)); } }
public void Load(string file, GraphicsDevice graphicsDevice) { Animations.AddAnimations(AnimationFile.Load(file, graphicsDevice)); }