Exemplo n.º 1
0
        // 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);
        }
Exemplo n.º 2
0
        // 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);
        }