Beispiel #1
0
 protected void ContextMenu_EditMaterial(object sender, EventArgs e)
 {
     if (visMouseOver.HasMouseOver)
     {
         // pop-up a modal version of the material editor (for testing/prototyping)
         var matName = visMouseOver.FullMaterialName;
         if (matName != null)
         {
             using (var editor = new ModalMaterialEditor()) {
                 editor.Object = new GUILayer.RawMaterial(matName);
                 editor.ShowDialog();
             }
         }
     }
 }
Beispiel #2
0
 protected void ContextMenu_EditMaterial(object sender, EventArgs e)
 {
     if (visMouseOver.HasMouseOver)
     {
         // pop-up a modal version of the material editor (for testing/prototyping)
         if (visMouseOver.FullMaterialName != null)
         {
             using (var editor = new ModalMaterialEditor()) {
                 editor.PreviewModel = Tuple.Create(visMouseOver.ModelName, visMouseOver.MaterialBindingGuid);
                 editor.Object       = visMouseOver.FullMaterialName;
                 editor.ShowDialog();
             }
         }
     }
 }
Beispiel #3
0
 protected void ContextMenu_EditMaterial(object sender, EventArgs e)
 {
     if (visMouseOver.HasMouseOver)
     {
             // pop-up a modal version of the material editor (for testing/prototyping)
         if (visMouseOver.FullMaterialName != null)
         {
             using (var editor = new ModalMaterialEditor()) {
                 editor.PreviewModel = Tuple.Create(visMouseOver.ModelName, visMouseOver.MaterialBindingGuid);
                 editor.Object = visMouseOver.FullMaterialName;
                 editor.ShowDialog();
             }
         }
     }
 }