public unsafe ToolboxVertex() { this.BrushTypeChanged = null; this.BrushParametersChanged = null; this.Rearranged = null; this.BrushFalloffTypeChanged = null; this.VertexFlagChanged = null; this.SelectionTypeChanged = null; this.InvertSelection = null; this.InitializeComponent(); this.BrushToolbox = new BrushTools(true); this.BrushToolbox.BrushParametersChanged += new BrushTools.BrushParametersChangeHandler(this.InternalBrushParamChanged); this.BrushToolbox.Rearranged += new ToolRearranged(this.SlidersRearranged); Point location = new Point(0, 36); this.BrushToolbox.Location = location; this.BrushToolbox.Anchor = (AnchorStyles.Top | AnchorStyles.Left); base.Controls.Add(this.BrushToolbox); Toolbar toolbar = new Toolbar((GToolbarItem *)(& < Module >.?items@?1 ???0ToolboxVertex@NWorkshop@@Q$AAM@XZ@4PAUGToolbarItem@NControls@@A), 24); this.tbBrush = toolbar; toolbar.Dock = DockStyle.Top; this.tbBrush.ButtonClick += new Toolbar.__Delegate_ButtonClick(this.tbBrush_ButtonClick); this.tbBrush.Rearranged += new ToolRearranged(this.ToolbarRearranged); Size size = base.Size; Size size2 = new Size(base.Size.Width, size.Height); this.tbBrush.Size = size2; base.Controls.Add(this.tbBrush); }
public unsafe ToolboxTerrainTools() { this.Rearranged = null; this.PaintTypeChanged = null; this.BrushParametersChanged = null; this.FillSelection = null; this.BrushColorChanged = null; this.InitializeComponent(); this.ColorTool = new ColorPicker(); this.ColorTool.ValueChanged += new ColorPicker.__Delegate_ValueChanged(this.ColorChanged); base.Controls.Add(this.ColorTool); this.BrushToolbox = new BrushTools(false); this.BrushToolbox.BrushParametersChanged += new BrushTools.BrushParametersChangeHandler(this.InternalBrushParamChanged); this.BrushToolbox.Rearranged += new ToolRearranged(this.SlidersRearranged); Point location = new Point(0, 36); this.BrushToolbox.Location = location; this.BrushToolbox.Anchor = (AnchorStyles.Top | AnchorStyles.Left); base.Controls.Add(this.BrushToolbox); Toolbar toolbar = new Toolbar((GToolbarItem *)(& < Module >.?items@?1 ???0ToolboxTerrainTools@NWorkshop@@Q$AAM@XZ@4PAUGToolbarItem@NControls@@A), 24); this.tbPaint = toolbar; toolbar.Dock = DockStyle.Top; this.tbPaint.ButtonClick += new Toolbar.__Delegate_ButtonClick(this.tbPaint_ButtonClick); this.tbPaint.Rearranged += new ToolRearranged(this.ToolbarRearranged); Size size = base.Size; Size size2 = new Size(base.Size.Width, size.Height); this.tbPaint.Size = size2; base.Controls.Add(this.tbPaint); Point location2 = this.BrushToolbox.Location; Point location3 = new Point(10, this.BrushToolbox.Height + location2.Y); this.ColorTool.Location = location3; this.ColorTool.Text = "Brush color"; this.ExtraCPHeight = 0; }