Esempio n. 1
0
 bool DoLoadMQO(string mqo_file)
 {
     // MQO読み込み
     mqo = new MqoReader();
     mqo.Load(mqo_file);
     return(true);
 }
Esempio n. 2
0
        protected virtual bool DoCleanup()
        {
            dir       = null;
            tsoref    = null;
            meshes    = null;
            mqo       = null;
            ii        = null;
            bw        = null;
            materials = null;
            textures  = null;

            System.GC.Collect();
            return(true);
        }
Esempio n. 3
0
        private void btnRefresh_Click(object sender, EventArgs e)
        {
            try
            {
                // 一旦現状を保存
                SaveAssign();

                // オブジェクト
                MqoReader mqo = new MqoReader();
                mqo.Load(tbMqoFile.Text);

                lvObjects.Items.Clear();
                foreach (MqoObject obj in mqo.Objects)
                {
                    ListViewItem item = lvObjects.Items.Add(obj.name);
                    item.Tag = obj;
                    string bone;

                    if (Config.Instance.object_bone_map.TryGetValue(obj.name, out bone))
                    {
                        item.SubItems.Add(bone);
                    }
                    else
                    {
                        item.SubItems.Add("");
                    }
                }

                // ボーン構造
                TSOFile tso = new TSOFile();
                tso.Load(tbTsoFileRef.Text);
                tvBones.Visible = false;
                tvBones.Nodes.Clear();
                BuildBoneTree(tvBones.Nodes, tso.nodes[0]);
                tvBones.ExpandAll();
                tvBones.Nodes[0].EnsureVisible();
            }
            catch (Exception exception)
            {
                Util.ProcessError(exception);
            }
            finally
            {
                tvBones.Visible = true;
            }
        }