private void aniBox_DoubleClick(object sender, EventArgs e)
        {
            Form ventana = new Form();

            ventana.FormBorderStyle = FormBorderStyle.FixedSingle;
            ventana.Size            = new System.Drawing.Size(512, 512);
            //ventana.Text = Tools.Helper.GetTranslation("NANR", "S1D");
            ventana.MaximizeBox = false;
            ventana.ShowIcon    = false;
            ventana.BackColor   = SystemColors.GradientInactiveCaption;

            int id = comboAni.SelectedIndex;

            Bitmap[] animations = new Bitmap[ani.Struct.abnk.anis[id].nFrames];
            for (int i = 0; i < ani.Struct.abnk.anis[id].nFrames; i++)
            {
                animations[i] = (Bitmap)sprite.Get_Image(image, palette, ani.Struct.abnk.anis[id].frames[i].data.nCell, 512, 256,
                                                         checkEntorno.Checked, checkCeldas.Checked, checkNumeros.Checked, checkTransparencia.Checked, checkImage.Checked);
            }

            AnimationControl control = new AnimationControl(animations, Convert.ToInt32(txtTime.Text));

            control.Dock = DockStyle.Fill;
            ventana.Controls.Add(control);
            ventana.Show();
        }
Example #2
0
        private void aniBox_DoubleClick(object sender, EventArgs e)
        {
            Form ventana = new Form();
            ventana.FormBorderStyle = FormBorderStyle.FixedSingle;
            ventana.Size = new System.Drawing.Size(512, 512);
            //ventana.Text = Tools.Helper.GetTranslation("NANR", "S1D");
            ventana.MaximizeBox = false;
            ventana.ShowIcon = false;
            ventana.BackColor = SystemColors.GradientInactiveCaption;

            int id = comboAni.SelectedIndex;
            Bitmap[] animations = new Bitmap[ani.Struct.abnk.anis[id].nFrames];
            for (int i = 0; i < ani.Struct.abnk.anis[id].nFrames; i++)
            {
                animations[i] = (Bitmap)sprite.Get_Image(image, palette, ani.Struct.abnk.anis[id].frames[i].data.nCell, 512, 256,
                    checkEntorno.Checked, checkCeldas.Checked, checkNumeros.Checked, checkTransparencia.Checked, checkImage.Checked);
            }

            AnimationControl control = new AnimationControl(animations, Convert.ToInt32(txtTime.Text));
            control.Dock = DockStyle.Fill;
            ventana.Controls.Add(control);
            ventana.Show();
        }