예제 #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (listBox2.SelectedIndex != -1)
     {
         TBAGW.Forms.Animation.AnimationEditor ae = new TBAGW.Forms.Animation.AnimationEditor();
         ae.Start((ShapeAnimation)listBox2.SelectedItem);
     }
 }
 private void button2_Click(object sender, EventArgs e)
 {
     Form1.MakeSureFormClosed(ae);
     ae = new TBAGW.Forms.Animation.AnimationEditor();
     if (newSprite.baseAnimations.Count == 0)
     {
         newSprite.baseAnimations.Add(new ShapeAnimation());
     }
     ae.Start(newSprite.baseAnimations[0]);
 }
        private void button6_Click(object sender, EventArgs e)
        {
            if (listBox2.SelectedIndex != -1)
            {
                var temp = listBox2.SelectedItem as SpriteLight;

                Form1.MakeSureFormClosed(ae);
                ae = new TBAGW.Forms.Animation.AnimationEditor();
                ae.Start(temp.lightMask);
            }
        }
        private void button3_Click_1(object sender, EventArgs e)
        {
            if (listBox2.SelectedIndex != -1)
            {
                var temp = listBox2.SelectedItem as SpriteLight;

                Form1.MakeSureFormClosed(ae);
                ae = new TBAGW.Forms.Animation.AnimationEditor();
                if (temp.baseAnimations.Count == 0)
                {
                    temp.baseAnimations.Add(new ShapeAnimation());
                }
                ae.Start(temp.baseAnimations[0]);
            }
        }