Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        private void mountLevelToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LevelSelect ls = new LevelSelect();

            ls.basepath = BF2FileSystem.basepath + "Levels\\";
            ls.ShowDialog();
            if (ls._exitOK)
            {
                mountLevelToolStripMenuItem.Enabled = false;
                isLoading       = true;
                consoleBox.Text = "";
                BF2FileSystem.Load();
                BF2FileSystem.LoadLevel(ls.result);
                BF2Level.engine = engineLevelExplorer;
                BF2Level.name   = ls.result;
                BF2Level.Load();
                Log.WriteLine("Done. Loaded " + (BF2FileSystem.clientFS.Count() + BF2FileSystem.serverFS.Count()) + " files");
                RefreshTrees();
                isLoading = false;
                saveChangesToolStripMenuItem.Enabled    =
                    mountLevelToolStripMenuItem.Enabled = true;
            }
        }