This chunk type holds a number of paletted sprites that may have z-buffer and/or alpha channels.
Inheritance: IffChunk
        public void SetActiveResource(IffChunk chunk, GameIffResource res)
        {
            GraphicChunk = (SPR2)chunk;
            ActiveIff = res;

            FrameList.Items.Clear();
            for (int i=0; i< GraphicChunk.Frames.Length / 3; i++)
            {
                FrameList.Items.Add("Rotation " + i);
            }

            bool hasFrames = (FrameList.Items.Count > 0);
            Graphics = null;
            if (hasFrames) FrameList.SelectedIndex = 0;
            else
            {
                SPRBox1.Image = null;
                SPRBox2.Image = null;
                SPRBox3.Image = null;
            }
            DeleteButton.Enabled = hasFrames;
            ImportButton.Enabled = hasFrames;
            ExportButton.Enabled = hasFrames;
            ImportAll.Enabled = hasFrames;
            ExportAll.Enabled = hasFrames;
        }
Beispiel #2
0
 public SPR2Frame(SPR2 parent)
 {
     this.Parent = parent;
 }
Beispiel #3
0
 public SPR2Frame(SPR2 parent)
 {
     this.Parent = parent;
 }