Exemplo n.º 1
0
        private void Button_AddSpriteSet_Click(object sender, EventArgs e)
        {
            SpriteSet NewSpriteSet = new SpriteSet("New SpriteSet");

            this._CurrentSprite.SpriteSets.Add(NewSpriteSet);
            SpriteSetEntry Entry = new SpriteSetEntry(NewSpriteSet);

            Entry.Dock = DockStyle.Top;
            EntryPanel.Controls.Add(Entry);
            Entry.BringToFront();
        }
Exemplo n.º 2
0
 public SpriteSetEditor(Sprite CurrentSprite)
 {
     InitializeComponent();
     this._Images        = new List <Bitmap>();
     this._CurrentSprite = CurrentSprite;
     for (int i = 0; i < CurrentSprite.SpriteSets.Count; i++)
     {
         SpriteSetEntry Entry = new SpriteSetEntry(CurrentSprite.SpriteSets[i]);
         Entry.Dock = DockStyle.Top;
         EntryPanel.Controls.Add(Entry);
         Entry.BringToFront();
     }
 }