Ejemplo n.º 1
0
 private void textureView_DoubleClick(object sender, EventArgs e)
 {
     using (TextureViewer textureViewer = new TextureViewer(mainForm))
     {
         if (textureViewer.ShowDialog() == DialogResult.OK)
         {
             int val = textureViewer.returnVal;
             selectedModel.textureConfig[textureView.SelectedIndices[0]].ID = val;
             UpdateModel();
         }
     }
 }
Ejemplo n.º 2
0
 public void OpenTextureViewer()
 {
     if (textureViewer == null || textureViewer.IsDisposed)
     {
         textureViewer = new TextureViewer(this);
         textureViewer.Show();
     }
     else
     {
         textureViewer.BringToFront();
     }
 }
Ejemplo n.º 3
0
 private void textureView_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     using (var form = new TextureViewer(main))
     {
         var result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             int val = form.returnVal;
             main.level.uiElements[listBox1.SelectedIndex].sprites[textureView.SelectedIndices[0]] = val;
             updateList();
         }
     }
 }
Ejemplo n.º 4
0
 private void pictureBox1_DoubleClick(object sender, EventArgs e)
 {
     using (var form = new TextureViewer(main))
     {
         var result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             int val = form.returnVal;
             main.level.textureConfigMenus[listBox1.SelectedIndex] = val;
             UpdateImage();
         }
     }
 }