示例#1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     try
     {
         DXHelper.CamRot += 0.01f;
         DXHelper.Render();
     }
     catch { }
 }
示例#2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            tocLabels    = main.Host.getTOCFileLabels();
            tocFiles     = main.Host.getTOCFiles();
            globalChunks = new List <ChunkInfo>();
            foreach (string toc in tocFiles)
            {
                if (toc.Contains("chunks"))
                {
                    globalChunks.AddRange(main.Host.getAllTocCHUNKs(toc));
                }
            }
            bundlePaths = new Dictionary <string, List <string> >();
            tocChunks   = new Dictionary <string, List <ChunkInfo> >();
            foreach (string toc in tocFiles)
            {
                bundlePaths.Add(toc, main.Host.getBundleNames(toc));
                tocChunks.Add(toc, main.Host.getAllTocCHUNKs(toc));
            }
            RefreshStuff();
            DXHelper.Init(pic1);
            timer1.Enabled = true;
            toolStripComboBox2.Items.Clear();
            toolStripComboBox2.Items.Add("None");
            toolStripComboBox2.Items.Add("From File...");
            toolStripComboBox2.SelectedIndex = 0;
            StringReader sr = new StringReader(Properties.Res.skeletonSHA1s);
            string       line;

            skeletons = new Dictionary <string, string>();
            while ((line = sr.ReadLine()) != null)
            {
                string[] parts = line.Split(':');
                skeletons.Add(parts[0].Trim(), parts[1].Trim());
            }
            toolStripComboBox2.Items.AddRange(skeletons.Keys.ToArray());
            tabControl1.SelectedTab = tabPage3;
            this.ActiveControl      = tv1;
        }
示例#3
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     DXHelper.Cleanup();
 }
示例#4
0
 private void pic1_SizeChanged(object sender, EventArgs e)
 {
     DXHelper.Resize(pic1);
 }