public override void BeginEditParams(IInterface ip, IIUtil iu) { //check file integrity newForm = new SelectorForm(ip, this.global); newForm.Activate(); newForm.Show(new Hwnd32(ip.MAXHWnd)); iu.CloseUtility(); }
// Methods from UtilityObj // Called by the system when the user may edit the entities parameters public override void BeginEditParams(IInterface ip, IIUtil iu) { this.ip = ip; this.iu = iu; System.Windows.Forms.MessageBox.Show("sdfsfsdf"); if (form == null) { form = new UtilityForm(global, iu); } form.Show(); ip.PushPrompt("Walking character utility"); }
public UtilityForm(IGlobal global, IIUtil iu) { InitializeComponent(); this.global = global; i = global.COREInterface14; this.iu = iu; Character = new Character("WalkingCharacterBody", "WalkingCharacterBip", 38); Animation = new BindingList <IModifier>(); Animation.ListChanged += Animation_ListChanged; listBoxAnimation.DataSource = Animation; listBoxAnimation.DisplayMember = "Name"; listBoxAnimation.ValueMember = "Name"; }
/// <summary> /// This will be called when the utility plugin is activated /// </summary> /// <param name="ip"></param> /// <param name="iu"></param> public override void BeginEditParams(IInterface ip, IIUtil iu) { //the window will stay open regardless if you close the utility plugin //if a running instance of the mianwindow is found it will just do nothing //else it will create a window and show it if (MainWindow.Instance != null) { return; } // attach the window to the window handling of max // that way the window itself wont loose its order // but now it wont go to system tray if you minimize it MainWindow window = new MainWindow(); AppSDK.ConfigureWindowForMax(window); window.Show(); }
public override void EndEditParams(IInterface ip, IIUtil iu) { }
public override void EndEditParams(IInterface ip, IIUtil iu) { ip.PopPrompt(); }
public override void BeginEditParams(IInterface ip, IIUtil iu) { ip.PushPrompt("Hello Dot Net!"); }
public override void EndEditParams(IInterface ip, IIUtil iu) { // make sure we clear (pop) our message ip.PopPrompt(); }
public override void BeginEditParams(IInterface ip, IIUtil iu) { // push a message to the "help bar" on the bottom ip.PushPrompt("Hey, our utility has just been started!"); }
// Called when the user is finished editing an object's parameters public override void EndEditParams(IInterface ip, IIUtil iu) { ip.PopPrompt(); }
public override void BeginEditParams(IInterface ip, IIUtil iu) { Interface = ip; UtilityInterface = iu; }