Example #1
0
 public void LoadExistingFile(params string[] files)
 {
     try
     {
         for (int i = 0; i < files.Length; i++)
         {
             var name    = files[i];
             var texture = GameContent.LoadRawTexture("Spritesheets/" + name);
             var sheet   = new Spritesheet(texture);
             sheet.Name = name;
             List.Add(sheet);
         }
     }
     catch (Exception e)
     {
         throw e;
     }
     SetPositions();
 }
Example #2
0
 public void Draw(SpriteBatch sb, Spritesheet sheet, Rectangle drawRec)
 {
     sb.Draw(sheet.Texture, drawRec, Source, Color.White);
 }
Example #3
0
 void SetSelectedSheet(Spritesheet sheet)
 {
     SelectorGui.Instance.SelectedSheet = sheet;
     FramesGui.Instance.SelectedSheet   = sheet;
 }