Ejemplo n.º 1
0
        private void exportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (_selectedAnim == null)
            {
                return;
            }

            dlgSave.FileName = _selectedAnim.Name;
            dlgSave.Filter   = ExportFilters.CHR0;
            if (dlgSave.ShowDialog() == DialogResult.OK)
            {
                _selectedAnim.Export(dlgSave.FileName);
            }
        }
Ejemplo n.º 2
0
        public static void Fska2Chr0(SkeletalAnim fska, string FileName)
        {
            CHR0Node chr0 = new CHR0Node();

            chr0.FrameCount   = fska.FrameCount;
            chr0.Name         = fska.Name;
            chr0.OriginalPath = fska.Path;
            chr0.UserEntries  = new UserDataCollection();
            chr0.Loop         = fska.Loop;

            foreach (var entry in fska.BoneAnims)
            {
                BoneAnim2Chr0Entry(entry, chr0);
            }

            chr0.Export(FileName);
        }