示例#1
0
 private void SelectAnimation(Dynamic.Animation a)
 {
     anim                = a;
     nSpeed.Value        = anim.speed;
     nDstIndex.Value     = anim.dstIndex;
     nDstTexture.Value   = anim.dstTexture;
     nTilesPerLine.Value = anim.count;
     nFrameCount.Value   = anim.framesCount + 1;
 }
示例#2
0
        public Form1()
        {
            InitializeComponent();

            anim = new Dynamic.Animation();
            //anim.source = new Bitmap("D:\\Xeeynamo\\Dropbox\\STHX\\@Final\\LEVEL\\S1GHZ\\Dynamic tiles\\_Flower large.png");
            anim.count       = 4;
            anim.speed       = 15;
            anim.index       = 0;
            anim.framesIndex = 0;
            anim.framesCount = 1;
            anim.pattern     = 0xFF;
            anim.dstIndex    = 0;
            anim.dstTexture  = 0;
            anim.pat[0]      = 0xFF;

            panel1.AddAnimation(anim);
            panel1.SelectedAnimation = 0;
            SelectAnimation(panel1.CurrentAnimation);
        }