123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- 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; }
- }
- }
- }
|