Esempio n. 1
0
 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));
     }
 }
Esempio n. 2
0
 public void Load(string file, GraphicsDevice graphicsDevice)
 {
     Animations.AddAnimations(AnimationFile.Load(file, graphicsDevice));
 }