Beispiel #1
0
 public void EditMaterials()
 {
     if (Model.Attach is BasicAttach)
     {
         using (MaterialEditor pw = new MaterialEditor(((BasicAttach)Model.Attach).Material, LevelData.TextureBitmaps[LevelData.leveltexs]))
         {
             pw.FormUpdated += pw_FormUpdated;
             pw.ShowDialog();
         }
     }
 }
Beispiel #2
0
 private void editMaterialsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (MaterialEditor dlg = new MaterialEditor(((BasicAttach)selectedObject.Attach).Material, TextureInfo))
     {
         dlg.FormUpdated += (s, ev) => DrawLevel();
         dlg.ShowDialog(this);
     }
 }