示例#1
0
 private void LoadBSPMenuItem_Click(object sender, EventArgs e)
 {
     ClockState(false);
     if (OpenBsp.ShowDialog() == DialogResult.OK)
     {
         Bsp bsp = new Bsp(OpenBsp.FileName);
         Display.Bsp = bsp;
         Display.Invalidate();
     }
 }
示例#2
0
        private void AutoloadBsp()
        {
            var demo = Demos.First();

            if (demo == null || demo.Models.Count < 1)
            {
                return;
            }

            foreach (PackFile pak in LoadedPaks)
            {
                string bspfile = demo.Models[0];
                if (pak.Contains(bspfile))
                {
                    Bsp bsp = new Bsp(pak.GetFile(bspfile));
                    Display.Bsp = bsp;
                }
            }
        }