1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- using System.Windows.Forms;
- using ActionItem = Autodesk.Max.Plugins.ActionItem;
- namespace Max2Babylon
- {
- public class BabylonExportActionItem : ActionItem
- {
- private ExporterForm form;
- public override bool ExecuteAction()
- {
- if (form == null)
- form = new ExporterForm(this);
- form.Show();
- form.BringToFront();
- form.WindowState = FormWindowState.Normal;
- return true;
- }
- public void Close()
- {
- if (form == null)
- {
- return;
- }
- form.Dispose();
- form = null;
- }
- public override int Id_
- {
- get { return 1; }
- }
- public override string ButtonText
- {
- get { return "Babylon File Exporter"; }
- }
- public override string MenuText
- {
- get { return "&Babylon File Exporter..."; }
- }
- public override string DescriptionText
- {
- get { return "Generate a babylon.js scene file2"; }
- }
- public override string CategoryText
- {
- get { return "Babylon"; }
- }
- public override bool IsChecked_
- {
- get { return false; }
- }
- public override bool IsItemVisible
- {
- get { return true; }
- }
- public override bool IsEnabled_
- {
- get { return true; }
- }
- }
- }
|