override public void OnGUI() { this.SetAllVisible(false, 0); this.modelIconImage.Left = this.Left + ControlBase.FixedMargin; this.modelIconImage.Top = this.Top + ControlBase.FixedMargin; this.modelIconImage.Width = (this.Width / 3 - ControlBase.FixedMargin / 4) / 4; this.modelIconImage.Height = this.modelIconImage.Width; this.modelIconImage.OnGUI(); this.modelNameLabel.Left = this.modelIconImage.Left + this.modelIconImage.Width + ControlBase.FixedMargin; this.modelNameLabel.Top = this.Top + ControlBase.FixedMargin + this.ControlHeight / 2; this.modelNameLabel.Width = this.modelIconImage.Width * 2; this.modelNameLabel.Height = this.ControlHeight; this.modelNameLabel.OnGUI(); GUIUtil.AddGUIButtonNoRender(this, this.gizmoPanToggle, this.modelNameLabel, 5); this.gizmoPanToggle.Top -= this.ControlHeight / 2; this.gizmoPanToggle.OnGUI(); GUIUtil.AddGUIButton(this, this.gizmoRotateToggle, this.gizmoPanToggle, 5); GUIUtil.AddGUIButton(this, this.gizmoScaleToggle, this.gizmoRotateToggle, 5); GUIUtil.AddGUIButton(this, this.modelCopyButton, this.gizmoScaleToggle, 8); GUIUtil.AddGUIButtonNoRender(this, this.resetPanButton, this.modelNameLabel, 5); this.resetPanButton.Top += this.ControlHeight / 2; this.resetPanButton.OnGUI(); GUIUtil.AddGUIButton(this, this.resetRotateButton, this.resetPanButton, 5); GUIUtil.AddGUIButton(this, this.resetScaleButton, this.resetRotateButton, 5); GUIUtil.AddGUIButton(this, this.modelDeleteButton, this.resetScaleButton, 8); if (this.gizmoScaleToggle.Value == true) { GUIUtil.AddGUICheckbox(this, this.gizmoScaleAllAxesToggle, this.modelIconImage); } this.Height = GUIUtil.GetHeightForParent(this); }