コード例 #1
0
ファイル: MainForm.cs プロジェクト: taknim/XLE
 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();
             }
         }
     }
 }
コード例 #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();
             }
         }
     }
 }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: ldh9451/XLE
 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();
             }
         }
     }
 }