// Disposer public override void Dispose() { // Not already disposed? if (!IsDisposed) { // Clean up General.Interface.RemoveDocker(undoredodocker); undoredopanel.Dispose(); drawingOverridesPanel.Dispose(); //mxd menusform.Unregister(); menusform.Dispose(); menusform = null; //mxd. These are created on demand, so they may be nulls. if (findreplaceform != null) { findreplaceform.Dispose(); findreplaceform = null; } if (errorcheckform != null) { errorcheckform.Dispose(); errorcheckform = null; } // Done me = null; base.Dispose(); } }
// When plugin is initialized public override void OnInitialize() { // Setup me = this; // Settings showvisualthings = 2; usegravity = false; LoadSettings(); LoadUISettings(); //mxd // Load menus form and register it menusform = new MenusForm(); menusform.Register(); menusform.TextureOffsetLock.Checked = lockSectorTextureOffsetsWhileDragging; //mxd menusform.SyncronizeThingEditButton.Checked = syncthingedit; //mxd menusform.SyncronizeThingEditSectorsItem.Checked = syncthingedit; //mxd menusform.SyncronizeThingEditLinedefsItem.Checked = syncthingedit; //mxd menusform.ItemLightRadii.Checked = showlightradii; menusform.ButtonLightRadii.Checked = showlightradii; menusform.ItemSoundRadii.Checked = showsoundradii; menusform.ButtonSoundRadii.Checked = showsoundradii; // Load Undo\Redo docker undoredopanel = new UndoRedoPanel(); undoredodocker = new Docker("undoredo", "Undo / Redo", undoredopanel); General.Interface.AddDocker(undoredodocker); //mxd. Create Overrides docker drawingOverridesPanel = new SectorDrawingOptionsPanel(); drawingOverridesDocker = new Docker("drawingoverrides", "Draw Settings", drawingOverridesPanel); //mxd General.Actions.BindMethods(this); }
// When plugin is initialized public override void OnInitialize() { // Setup me = this; // Settings showvisualthings = 2; usegravity = false; usehighlight = true; LoadSettings(); // Load menus form and register it menusform = new MenusForm(); menusform.Register(); // Load curve linedefs form curvelinedefsform = new CurveLinedefsForm(); // Load find/replace form findreplaceform = new FindReplaceForm(); // Load error checking form errorcheckform = new ErrorCheckForm(); // villsa sectorlights = new Lights[5]; // Load Undo\Redo docker undoredopanel = new UndoRedoPanel(); undoredodocker = new Docker("undoredo", "Undo / Redo", undoredopanel); General.Interface.AddDocker(undoredodocker); }
// Disposer public override void Dispose() { // Not already disposed? if (!IsDisposed) { // Clean up General.Interface.RemoveDocker(undoredodocker); undoredopanel.Dispose(); menusform.Unregister(); menusform.Dispose(); menusform = null; curvelinedefsform.Dispose(); curvelinedefsform = null; findreplaceform.Dispose(); findreplaceform = null; errorcheckform.Dispose(); errorcheckform = null; // Done me = null; base.Dispose(); } }