private void RefreshTrees() { tv1.Nodes.Clear(); tv1.Nodes.Add(BF2FileSystem.MakeFSTree()); tv2.Nodes.Clear(); tv2.Nodes.Add(BF2FileSystem.MakeFSTreeFiltered(new string[] { ".staticmesh", ".bundledmesh", ".skinnedmesh", ".collisionmesh" })); tv3.Nodes.Clear(); tv3.Nodes.Add(BF2HUDLoader.MakeTree()); listBox1.Items.Clear(); foreach (string objname in BF2Level.MakeList()) { listBox1.Items.Add(objname); } }
private void MainForm_Activated(object sender, EventArgs e) { if (init) { return; } BF2FileSystem.Load(); BF2HUDLoader.Init(); Log.WriteLine("Done. Loaded " + (BF2FileSystem.clientFS.Count() + BF2FileSystem.serverFS.Count()) + " files"); RefreshTrees(); engineMeshExplorer = new Engine3D(pic2); engineLevelExplorer = new Engine3D(pic3); BF2Level.engine = engineLevelExplorer; engineLevelExplorer.renderLevel = true; renderTimerMeshes.Enabled = true; renderTimerLevel.Enabled = true; toolStripComboBox1.SelectedIndex = 0; init = true; }