// Frame collection private void newFrame_Click(object sender, EventArgs e) { if (sequence.Frames.Count == 256) { MessageBox.Show("Sequences cannot contain more than 256 frames total.", "LAZY SHELL", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } int index = 0; if (sequence.Frames.Count != 0) { index = this.index + 1; } sequence.Frames.Insert(index, new Sequence.Frame().New()); DrawFrames(); RefreshFrame(); SetFrameImages(); this.index = index; // update free space animation.WriteToBuffer(); ownerForm.SetFreeBytesLabel(); toolStrip1.Enabled = duplicateFrame.Enabled = deleteFrame.Enabled = moveFrameBack.Enabled = moveFrameFoward.Enabled = reverseFrames.Enabled = true; }
private void animationPacket_ValueChanged(object sender, EventArgs e) { if (this.Updating) { return; } sprite.AnimationPacket = (ushort)animationPacket.Value; animationVRAM.Value = animation.VramAllocation; moldsForm.Reload(); sequencesForm.Reload(); ownerForm.SetFreeBytesLabel(); }