// 加载DLL private void 加载DLLToolStripMenuItem_Click(object sender, EventArgs e) { if (manager.assetsFileList.Count > 0) { openFolderDialog.Title = "打开DLL所在文件夹"; if (openFolderDialog.ShowDialog(this) == DialogResult.OK) { Logger.Info("载入DLL"); scriptDumper.Dispose(); scriptDumper = new ScriptDumper(openFolderDialog.Folder); Logger.Info("载入DLL完成"); } } else { MessageBox.Show(this, "未加载Data文件"); } }
private void ClearForm() { // 场景视图 HierarchiesTree.Nodes.Clear(); ComponentTree.Nodes.Clear(); // 文件视图 FileView_Selector.Items.Clear(); ExternalList.Items.Clear(); AssetObjList.Items.Clear(); // 脚本视图 ScriptTree.Nodes.Clear(); // 右侧视图 DumpText.Text = ""; FileInfoText.Text = ""; Text = "MainForm"; manager.Clear(); scriptDumper?.Dispose(); }