예제 #1
0
 private void Rail_listbox()
 {
     Rail rail = new Rail(_railPath);
     rail.rail(Convert.ToInt32(listBox1.Items[listBox1.SelectedIndex]));
     Render3D();
 }
예제 #2
0
 private void openToolStripMenuItem2_Click(object sender, EventArgs e)
 {
     SetLines(true);
     OpenFileDialog ofd = new OpenFileDialog
     {
         Title = "Open FF8 rail.obj file (rail.obj)",
         Filter = "Final Fantasy VIII train file (rail.obj)|rail.obj"
     };
     if (ofd.ShowDialog() != DialogResult.OK) return;
     _state = StateRailDraw;
     _railPath = ofd.FileName;
     UpdateStatus(_railPath);
     Rail rail = new Rail(ofd.FileName);
     listBox1.Items.Clear();
     foreach (var i in rail.GetRails())
     {
         listBox1.Items.Add(i);
     }
     listBox1.SelectedIndex = 0;
     railEditorToolStripMenuItem.Enabled = true;
 }