예제 #1
0
        override public void ShowPane()
        {
            GUIUtil.AddGUICheckbox(this, this.tweakModeBox);
            GUIUtil.AddGUICheckbox(this, this.screenBlendModeBox);
            GUIUtil.AddGUICheckbox(this, this.hdrBox);
            GUIUtil.AddGUICheckbox(this, this.qualityCheckbox);
            GUIUtil.AddGUISlider(this, this.bloomIntensitySlider);
            GUIUtil.AddGUISlider(this, this.bloomThreshholdSlider);
            GUIUtil.AddGUISlider(this, this.bloomBlurIterationsSlider);
            GUIUtil.AddGUISlider(this, this.sepBlurSpreadSlider);

            GUIUtil.AddGUICheckbox(this, this.bloomThreshholdColorPicker);
            GUIUtil.AddGUICheckbox(this, this.lensflareModeBox);
            GUIUtil.AddGUISlider(this, this.lensflareIntensitySlider);
            GUIUtil.AddGUISlider(this, this.lensFlareSaturationSlider);
            GUIUtil.AddGUISlider(this, this.lensflareThreshholdSlider);
            GUIUtil.AddGUISlider(this, this.flareRotationSlider);
            GUIUtil.AddGUISlider(this, this.hollyStretchWidthSlider);
            GUIUtil.AddGUISlider(this, this.hollywoodFlareBlurIterationsSlider);

            GUIUtil.AddGUICheckbox(this, this.flareColorAPicker);
            GUIUtil.AddGUICheckbox(this, this.flareColorBPicker);
            GUIUtil.AddGUICheckbox(this, this.flareColorCPicker);
            GUIUtil.AddGUICheckbox(this, this.flareColorDPicker);
        }
예제 #2
0
 override public void ShowPane()
 {
     GUIUtil.AddGUISlider(this, this.doodSlider);
     GUIUtil.AddGUICheckbox(this, this.lightTypeBox);
     GUIUtil.AddGUICheckbox(this, this.isWorkingCheckbox);
     GUIUtil.AddGUICheckbox(this, this.backgroundColorPicker);
 }
        override public void ShowPane()
        {
            GUIUtil.AddGUICheckbox(this, this._lineColorPicker);
            GUIUtil.AddGUISlider(this, this._luminanceBlendingSlider);
            GUIUtil.AddGUISlider(this, this._fallOffDepthSlider);
            GUIUtil.AddGUICheckbox(this, this._backgroundColorPicker);
            GUIUtil.AddGUISlider(this, this._axisXSlider);
            GUIUtil.AddGUISlider(this, this._axisYSlider);
            GUIUtil.AddGUISlider(this, this._axisZSlider);
            GUIUtil.AddGUISlider(this, this._intervalSlider);

            GUIUtil.AddGUISlider(this, this._directionXSlider);
            GUIUtil.AddGUISlider(this, this._directionYSlider);
            GUIUtil.AddGUISlider(this, this._directionZSlider);
            GUIUtil.AddGUISlider(this, this._speedSlider);

            if (this._speedSlider.Value == 0)
            {
                GUIUtil.AddGUISlider(this, this._offsetXSlider);
                GUIUtil.AddGUISlider(this, this._offsetYSlider);
                GUIUtil.AddGUISlider(this, this._offsetZSlider);
            }

            GUIUtil.AddGUISlider(this, this._distortionFrequencySlider);
            GUIUtil.AddGUISlider(this, this._distortionAmountSlider);
            GUIUtil.AddGUICheckbox(this, this._modulationModeComboBox);
            GUIUtil.AddGUISlider(this, this._modulationAxisXSlider);
            GUIUtil.AddGUISlider(this, this._modulationAxisYSlider);
            GUIUtil.AddGUISlider(this, this._modulationAxisZSlider);
            GUIUtil.AddGUISlider(this, this._modulationFrequencySlider);
            GUIUtil.AddGUISlider(this, this._modulationSpeedSlider);
            GUIUtil.AddGUISlider(this, this._modulationExponentSlider);
        }
예제 #4
0
        override public void ShowPane()
        {
            GUIUtil.AddGUICheckbox(this, this.modeBox);

            switch (this.ModeValue)
            {
            case AAMode.FXAA3Console:
                GUIUtil.AddGUISlider(this, this.edgeThresholdMinSlider);
                GUIUtil.AddGUISlider(this, this.edgeThresholdSlider);
                break;

            case AAMode.NFAA:
                GUIUtil.AddGUICheckbox(this, this.showGeneratedNormalsCheckbox);
                GUIUtil.AddGUISlider(this, this.blurRadiusSlider);
                GUIUtil.AddGUISlider(this, this.offsetScaleSlider);
                break;

            case AAMode.DLAA:
                GUIUtil.AddGUICheckbox(this, this.dlaaSharpCheckbox, this.modeBox);
                break;

            case AAMode.FXAA2:
            case AAMode.FXAA1PresetA:
            case AAMode.FXAA1PresetB:
            case AAMode.SSAA:
            default:
                break;
            }
        }
예제 #5
0
        override public void ShowPane()
        {
            GUIUtil.AddGUICheckbox(this, this.dx11GrainCheckbox);
            GUIUtil.AddGUICheckbox(this, this.monochromeCheckbox);
            GUIUtil.AddGUISlider(this, this.intensityMultiplierSlider);
            GUIUtil.AddGUISlider(this, this.blackIntensitySlider);
            GUIUtil.AddGUISlider(this, this.whiteIntensitySlider);
            GUIUtil.AddGUISlider(this, this.midGreySlider);

            if (this.dx11GrainCheckbox.Value == false)
            {
                GUIUtil.AddGUICheckbox(this, this.filterModeBox);
            }

            GUIUtil.AddGUISlider(this, this.softnessSlider);

            if (this.monochromeCheckbox.Value == true)
            {
                GUIUtil.AddGUISlider(this, this.monochromeTilingSlider);
            }
            else
            {
                GUIUtil.AddGUISlider(this, this.tilingRedSlider);
                GUIUtil.AddGUISlider(this, this.tilingGreenSlider);
                GUIUtil.AddGUISlider(this, this.tilingBlueSlider);
            }
        }
        override public void ShowPane()
        {
            this.languageBox.Left     = this.Left + ControlBase.FixedMargin;
            this.languageBox.Top      = this.Top + ControlBase.FixedMargin;
            this.languageBox.Width    = this.Width - ControlBase.FixedMargin * 2;
            this.languageBox.Height   = this.ControlHeight;
            this.languageBox.FontSize = this.FontSize;
            this.languageBox.OnGUI();

            GUIUtil.AddGUICheckbox(this, this.nameTextField, this.languageBox);
            GUIUtil.AddGUICheckbox(this, this.saveButton, this.nameTextField);
            GUIUtil.AddGUICheckbox(this, this.loadTargetLabel, this.saveButton);

            GUIUtil.AddGUIButtonAfter(this, this.loadEffectsCheckbox, this.loadTargetLabel, 5);
            GUIUtil.AddGUIButton(this, this.loadLightsCheckbox, this.loadEffectsCheckbox, 5);
            GUIUtil.AddGUIButton(this, this.loadModelsCheckbox, this.loadLightsCheckbox, 5);
            GUIUtil.AddGUIButton(this, this.loadCameraCheckbox, this.loadModelsCheckbox, 5);
            GUIUtil.AddGUIButton(this, this.loadMiscCheckbox, this.loadCameraCheckbox, 5);

            ControlBase prev = this.loadLightsCheckbox;

            foreach (SavePane pane in this.savePanes)
            {
                GUIUtil.AddGUICheckbox(this, pane, prev);
                prev = pane;
            }

            this.Height = GUIUtil.GetHeightForParent(this);
        }
        override public void ShowPane()
        {
            GUIUtil.AddGUICheckbox(this, this.edgeDetectModeBox);
            switch (this.ModeValue)
            {
            case EdgeDetectMode.TriangleDepthNormals:
            case EdgeDetectMode.RobertsCrossDepthNormals:
                GUIUtil.AddGUISlider(this, this.sensitivityNormalsSlider);
                GUIUtil.AddGUISlider(this, this.sensitivityDepthSlider);
                break;

            case EdgeDetectMode.SobelDepth:
            case EdgeDetectMode.SobelDepthThin:
                GUIUtil.AddGUISlider(this, this.edgeExpSlider);
                break;

            case EdgeDetectMode.TriangleLuminance:
                GUIUtil.AddGUISlider(this, this.lumThresholdSlider);
                break;

            default:
                break;
            }
            GUIUtil.AddGUISlider(this, this.sampleDistSlider);
            GUIUtil.AddGUISlider(this, this.edgesOnlySlider);
            GUIUtil.AddGUICheckbox(this, this.edgesOnlyBgColorPicker);
        }
        override public void ShowPane()
        {
            GUIUtil.AddGUICheckbox(this, this.transformFromMaidCheckbox);

            if (this.transformFromMaidCheckbox.Value == true)
            {
                // GUIUtil.AddGUICheckbox(this, this.reloadMaidsButton);
                this.reloadMaidsButton.Left   = this.Left + this.FontSize * 11;
                this.reloadMaidsButton.Top    = this.transformFromMaidCheckbox.Top + this.ControlHeight;
                this.reloadMaidsButton.Width  = this.FontSize * 6;
                this.reloadMaidsButton.Height = this.ControlHeight;
                this.reloadMaidsButton.OnGUI();
                this.reloadMaidsButton.Visible = true;

                // GUIUtil.AddGUICheckbox(this, this.prevMaidButton);
                this.prevMaidButton.Left   = this.Left + ControlBase.FixedMargin;
                this.prevMaidButton.Top    = this.reloadMaidsButton.Top;
                this.prevMaidButton.Width  = this.FontSize * 2;
                this.prevMaidButton.Height = this.ControlHeight;
                this.prevMaidButton.OnGUI();
                this.prevMaidButton.Visible = true;

                // GUIUtil.AddGUICheckbox(this, this.nextMaidButton);
                this.nextMaidButton.Left   = this.prevMaidButton.Left + this.nextMaidButton.Width;
                this.nextMaidButton.Top    = this.reloadMaidsButton.Top;
                this.nextMaidButton.Width  = this.FontSize * 2;
                this.nextMaidButton.Height = this.ControlHeight;
                this.nextMaidButton.OnGUI();
                this.nextMaidButton.Visible = true;

                this.focusMaidLabel.Left   = this.nextMaidButton.Left + this.nextMaidButton.Width + ControlBase.FixedMargin;
                this.focusMaidLabel.Top    = this.nextMaidButton.Top;
                this.focusMaidLabel.Width  = this.FontSize * 13;
                this.focusMaidLabel.Height = this.ControlHeight;
                this.focusMaidLabel.Text   = this.maidManager.sCurrent;
                this.focusMaidLabel.OnGUI();
                this.focusMaidLabel.Visible = true;
            }
            else
            {
                GUIUtil.AddGUISlider(this, this.focusDistanceSlider);
            }

            GUIUtil.AddGUISlider(this, this.fNumberSlider);

            GUIUtil.AddGUICheckbox(this, this.kernelSizeBox);
            GUIUtil.AddGUICheckbox(this, this.useCameraFovCheckbox);

            if (this.useCameraFovCheckbox.Value == false)
            {
                GUIUtil.AddGUISlider(this, this.focalLengthSlider);
            }

            GUIUtil.AddGUICheckbox(this, this.visualizeCheckbox);

            this.focusMaidToggled = this.transformFromMaidCheckbox.Value;

            this.maidManager.Update();
        }
 override public void ShowPane()
 {
     GUIUtil.AddGUICheckbox(this, this.modeBox);
     GUIUtil.AddGUICheckbox(this, this.qualityBox);
     GUIUtil.AddGUISlider(this, this.blurAreaSlider);
     GUIUtil.AddGUISlider(this, this.maxBlurSizeSlider);
     GUIUtil.AddGUISlider(this, this.downsampleSlider);
 }
예제 #10
0
 override public void ShowPane()
 {
     GUIUtil.AddGUICheckbox(this, this.modeComboBox);
     GUIUtil.AddGUICheckbox(this, this.shadowsPicker);
     GUIUtil.AddGUICheckbox(this, this.midtonesPicker);
     GUIUtil.AddGUICheckbox(this, this.highlightsPicker);
     GUIUtil.AddGUISlider(this, this.amountSlider);
 }
예제 #11
0
 override public void ShowPane()
 {
     GUIUtil.AddGUISlider(this, this.scaleSlider);
     GUIUtil.AddGUISlider(this, this.dotSizeSlider);
     GUIUtil.AddGUISlider(this, this.angleSlider);
     GUIUtil.AddGUISlider(this, this.smoothnessSlider);
     GUIUtil.AddGUISlider(this, this.centerXSlider);
     GUIUtil.AddGUISlider(this, this.centerYSlider);
     GUIUtil.AddGUICheckbox(this, this.desaturateCheckbox);
 }
예제 #12
0
        override public void ShowPane()
        {
            GUIUtil.AddGUICheckbox(this, this.colorPicker);

            GUIUtil.AddGUISlider(this, this.offsetXSlider);
            GUIUtil.AddGUISlider(this, this.offsetYSlider);
            GUIUtil.AddGUISlider(this, this.rotationSlider);
            GUIUtil.AddGUISlider(this, this.scaleSlider);

            GUIUtil.AddGUICheckbox(this, this.jaggiesCheckbox);
        }
예제 #13
0
 override public void ShowPane()
 {
     GUIUtil.AddGUICheckbox(this, this.qualityBox);
     if (this.QualityValue == LensDistortionBlur.QualityPreset.Custom)
     {
         GUIUtil.AddGUISlider(this, this.samplesSlider);
         GUIUtil.AddGUISlider(this, this.distortionSlider);
         GUIUtil.AddGUISlider(this, this.cubicDistortionSlider);
         GUIUtil.AddGUISlider(this, this.scaleSlider);
     }
 }
 override public void ShowPane()
 {
     GUIUtil.AddGUICheckbox(this, this.modeComboBox);
     GUIUtil.AddGUICheckbox(this, this.automaticTimerCheckbox);
     if (this.automaticTimerCheckbox.Value == false)
     {
         GUIUtil.AddGUISlider(this, this.timerSlider);
     }
     GUIUtil.AddGUISlider(this, this.speedSlider);
     GUIUtil.AddGUISlider(this, this.frequencySlider);
     GUIUtil.AddGUISlider(this, this.amplitudeSlider);
 }
        override public void ShowPane()
        {
           GUIUtil.AddGUISlider(this, this.scaleSlider);
           GUIUtil.AddGUICheckbox(this, this.automaticRatioCheckbox);

           if( this.automaticRatioCheckbox.Value == false )
           {
               GUIUtil.AddGUISlider(this, this.ratioSlider);
           }

           GUIUtil.AddGUICheckbox(this, this.modeComboBox);
        }
        override public void ShowPane()
        {
            GUIUtil.AddGUICheckbox(this, this.whitePicker);
            GUIUtil.AddGUICheckbox(this, this.blackPicker);
            GUIUtil.AddGUICheckbox(this, this.redPicker);
            GUIUtil.AddGUICheckbox(this, this.greenPicker);
            GUIUtil.AddGUICheckbox(this, this.bluePicker);
            GUIUtil.AddGUICheckbox(this, this.yellowPicker);
            GUIUtil.AddGUICheckbox(this, this.magentaPicker);
            GUIUtil.AddGUICheckbox(this, this.cyanPicker);

            GUIUtil.AddGUISlider(this, this.amountSlider);
        }
예제 #17
0
        override public void ShowPane()
        {
            GUIUtil.AddGUISlider(this, this.intensitySlider);
            GUIUtil.AddGUISlider(this, this.radiusSlider);
            GUIUtil.AddGUICheckbox(this, this.sampleCountBox);

            if (this.sampleCountBox.SelectedItem == "Variable")
            {
                GUIUtil.AddGUISlider(this, this.sampleCountValueSlider);
            }

            GUIUtil.AddGUICheckbox(this, this.downsamplingCheckbox);
            GUIUtil.AddGUICheckbox(this, this.occlusionSourceBox);
            GUIUtil.AddGUICheckbox(this, this.ambientOnlyCheckbox);
        }
예제 #18
0
        override public void ShowPane()
        {
            GUIUtil.AddGUICheckbox(this, this.resolutionBox);
            GUIUtil.AddGUICheckbox(this, this.screenBlendModeBox);
            GUIUtil.AddGUICheckbox(this, this.useDepthTextureCheckbox);

            GUIUtil.AddGUICheckbox(this, this.dragSourceButton);
            GUIUtil.AddGUICheckbox(this, this.sunColorPicker);

            GUIUtil.AddGUISlider(this, this.maxRadiusSlider);
            GUIUtil.AddGUISlider(this, this.sunShaftBlurRadiusSlider);
            GUIUtil.AddGUISlider(this, this.radialBlurIterationsSlider);
            GUIUtil.AddGUISlider(this, this.sunShaftIntensitySlider);
            GUIUtil.AddGUISlider(this, this.useSkyBoxAlphaSlider);
        }
        override public void ShowPane()
        {
            if (!setup)
            {
                SetupPane();
                return;
            }

            GUIUtil.AddGUICheckbox(this, this.fogModeBox);
            GUIUtil.AddGUICheckbox(this, this.adjustStartDistanceToggle);
            GUIUtil.AddGUISlider(this, this.startDistanceSlider);
            GUIUtil.AddGUISlider(this, this.globalDensitySlider);
            GUIUtil.AddGUICheckbox(this, this.adjustHeightScaleToggle);
            GUIUtil.AddGUISlider(this, this.heightScaleSlider);
            GUIUtil.AddGUISlider(this, this.heightSlider);
            GUIUtil.AddGUICheckbox(this, this.globalFogColorPicker);
        }
예제 #20
0
 override public void ShowPane()
 {
     GUIUtil.AddGUICheckbox(this, this.automaticPhaseCheckbox);
     if (this.automaticPhaseCheckbox.Value == false)
     {
         GUIUtil.AddGUISlider(this, this.phaseSlider);
     }
     GUIUtil.AddGUICheckbox(this, this.convertToGrayscaleCheckbox);
     GUIUtil.AddGUISlider(this, this.noiseIntensitySlider);
     GUIUtil.AddGUISlider(this, this.scanlinesIntensitySlider);
     GUIUtil.AddGUISlider(this, this.scanlinesCountSlider);
     GUIUtil.AddGUISlider(this, this.scanlinesOffsetSlider);
     GUIUtil.AddGUICheckbox(this, this.verticalScanlinesCheckbox);
     GUIUtil.AddGUISlider(this, this.distortionSlider);
     GUIUtil.AddGUISlider(this, this.cubicDistortionSlider);
     GUIUtil.AddGUISlider(this, this.scaleSlider);
 }
        override public void ShowPane()
        {
            GUIUtil.AddGUISlider(this, this.intensitySlider);
            GUIUtil.AddGUISlider(this, this.blurSlider);
            GUIUtil.AddGUISlider(this, this.blurSpreadSlider);
            GUIUtil.AddGUICheckbox(this, this.modeCheckbox);

            if (this.ModeValue == Vignetting.AberrationMode.Simple)
            {
                GUIUtil.AddGUISlider(this, this.chromaticAberrationSlider);
            }
            else
            {
                GUIUtil.AddGUISlider(this, this.luminanceDependencySlider);
                GUIUtil.AddGUISlider(this, this.axialAberrationSlider);
                GUIUtil.AddGUISlider(this, this.blurDistanceSlider);
            }
        }
 override public void ShowPane()
 {
     GUIUtil.AddGUISlider(this, this.stripAngleSlider);
     GUIUtil.AddGUISlider(this, this.stripDensitySlider);
     GUIUtil.AddGUISlider(this, this.stripThicknessSlider);
     GUIUtil.AddGUISlider(this, this.stripLimitsXSlider);
     GUIUtil.AddGUISlider(this, this.stripLimitsYSlider);
     GUIUtil.AddGUICheckbox(this, this.stripInnerColorPicker);
     GUIUtil.AddGUICheckbox(this, this.stripOuterColorPicker);
     GUIUtil.AddGUICheckbox(this, this.fillColorPicker);
     GUIUtil.AddGUICheckbox(this, this.backgroundColorPicker);
     GUIUtil.AddGUICheckbox(this, this.edgeDetectionCheckbox);
     if (this.edgeDetectionCheckbox.Value == true)
     {
         GUIUtil.AddGUISlider(this, this.edgeThresholdSlider);
     }
     GUIUtil.AddGUICheckbox(this, this.edgeColorPicker);
     GUIUtil.AddGUISlider(this, this.amountSlider);
 }
예제 #23
0
        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);
        }
예제 #24
0
        override public void ShowPane()
        {
            GUIUtil.AddGUICheckbox(this, this.modeCheckbox);
            GUIUtil.AddGUISlider(this, this.saturationSlider);

            GUIUtil.AddGUICurve(this, this.redChannelCurve);
            GUIUtil.AddGUICurve(this, this.greenChannelCurve);
            GUIUtil.AddGUICurve(this, this.blueChannelCurve);
            if (this.ModeValue == ColorCorrectionMode.Advanced)
            {
                GUIUtil.AddGUICurve(this, this.depthRedChannelCurve);
                GUIUtil.AddGUICurve(this, this.depthGreenChannelCurve);
                GUIUtil.AddGUICurve(this, this.depthBlueChannelCurve);
                GUIUtil.AddGUICurve(this, this.zCurveCurve);
            }

            GUIUtil.AddGUICheckbox(this, this.selectiveCcCheckbox);

            if (this.selectiveCcCheckbox.Value == true)
            {
                GUIUtil.AddGUICheckbox(this, this.selectiveFromColorPicker);
                GUIUtil.AddGUICheckbox(this, this.selectiveToColorPicker);
            }
        }
        override public void OnGUI()
        {
            this.SetAllVisible(false, 0);

            this.lightNameLabel.Left   = this.Left + ControlBase.FixedMargin;
            this.lightNameLabel.Top    = this.Top + ControlBase.FixedMargin;
            this.lightNameLabel.Width  = this.Width / 2 - ControlBase.FixedMargin / 4;
            this.lightNameLabel.Height = this.ControlHeight;
            this.lightNameLabel.Text   = this.Text;
            this.lightNameLabel.OnGUI();

            GUIUtil.AddGUICheckbox(this, this.lightTypeComboBox);

            bool isMainLight = this.Text == Translation.GetText("UI", "mainLight");
            int  buttonCount = isMainLight ? 3 : 5;

            GUIUtil.AddGUIButtonAfter(this, this.lightResetButton, this.lightTypeComboBox, buttonCount);
            this.lightResetButton.Height = this.ControlHeight;

            GUIUtil.AddGUIButton(this, this.lightResetPosButton, this.lightResetButton, buttonCount);
            GUIUtil.AddGUIButton(this, this.lightDragToggle, this.lightResetPosButton, buttonCount);

            if (!isMainLight)
            {
                GUIUtil.AddGUIButton(this, this.lightEnableToggle, this.lightDragToggle, buttonCount);
                GUIUtil.AddGUIButton(this, this.lightDeleteButton, this.lightEnableToggle, buttonCount);
            }

            GUIUtil.AddGUISlider(this, this.lightRotationXSlider);
            GUIUtil.AddGUISlider(this, this.lightRotationYSlider);
            // GUIUtil.AddGUISlider(this, this.lightRotationZSlider );
            GUIUtil.AddGUISlider(this, this.lightIntensitySlider);
            // GUIUtil.AddGUISlider(this, this.lightBounceIntensitySlider );

            if (this.lightTypeComboBox.SelectedItem != "Directional")
            {
                GUIUtil.AddGUISlider(this, this.lightRangeSlider);
            }

            if (this.lightTypeComboBox.SelectedItem == "Spot")
            {
                GUIUtil.AddGUISlider(this, this.spotLightAngleSlider);
            }

            GUIUtil.AddGUICheckbox(this, this.lightColorPicker);

            if (this.lightTypeComboBox.SelectedItem == "Directional")
            {
                GUIUtil.AddGUICheckbox(this, this.shadowsBox);
                if (this.shadowsBox.SelectedItem != "None")
                {
                    GUIUtil.AddGUISlider(this, this.shadowStrengthSlider);
                    GUIUtil.AddGUISlider(this, this.shadowBiasSlider);
                    GUIUtil.AddGUISlider(this, this.shadowNormalBiasSlider);
                }
            }

            foreach (ControlBase control in this.ChildControls)
            {
                // TODO: make this always happen
                control.ScreenPos = this.ScreenPos;
            }

            this.Height = GUIUtil.GetHeightForParent(this);
        }
 override public void ShowPane()
 {
     GUIUtil.AddGUICheckbox(this, this.lookupTexturePicker);
     GUIUtil.AddGUISlider(this, this.amountSlider);
     GUIUtil.AddGUICheckbox(this, this.forceCompatibilityCheckbox);
 }
예제 #27
0
 override public void ShowPane()
 {
     GUIUtil.AddGUICheckbox(this, this.whitePicker);
     GUIUtil.AddGUICheckbox(this, this.modeComboBox);
 }
예제 #28
0
 override public void ShowPane()
 {
     GUIUtil.AddGUICheckbox(this, this.extraBlurCheckbox);
     GUIUtil.AddGUISlider(this, this.blurAmountSlider);
 }
예제 #29
0
        override public void ShowPane()
        {
            this.SetAllVisible(false, 0);
            GUIUtil.AddGUICheckbox(this, this.visualizeFocusCheckbox);
            GUIUtil.AddGUICheckbox(this, this.blurTypeCheckbox);
            GUIUtil.AddGUICheckbox(this, this.transformFromMaidCheckbox);

            if (this.transformFromMaidCheckbox.Value == true)
            {
                // GUIUtil.AddGUICheckbox(this, this.reloadMaidsButton);
                this.reloadMaidsButton.Left   = this.Left + this.FontSize * 11;
                this.reloadMaidsButton.Top    = this.transformFromMaidCheckbox.Top + this.ControlHeight;
                this.reloadMaidsButton.Width  = this.FontSize * 6;
                this.reloadMaidsButton.Height = this.ControlHeight;
                this.reloadMaidsButton.OnGUI();
                this.reloadMaidsButton.Visible = true;

                // GUIUtil.AddGUICheckbox(this, this.prevMaidButton);
                this.prevMaidButton.Left   = this.Left + ControlBase.FixedMargin;
                this.prevMaidButton.Top    = this.reloadMaidsButton.Top;
                this.prevMaidButton.Width  = this.FontSize * 2;
                this.prevMaidButton.Height = this.ControlHeight;
                this.prevMaidButton.OnGUI();
                this.prevMaidButton.Visible = true;

                // GUIUtil.AddGUICheckbox(this, this.nextMaidButton);
                this.nextMaidButton.Left   = this.prevMaidButton.Left + this.nextMaidButton.Width;
                this.nextMaidButton.Top    = this.reloadMaidsButton.Top;
                this.nextMaidButton.Width  = this.FontSize * 2;
                this.nextMaidButton.Height = this.ControlHeight;
                this.nextMaidButton.OnGUI();
                this.nextMaidButton.Visible = true;

                this.focusMaidLabel.Left   = this.nextMaidButton.Left + this.nextMaidButton.Width + ControlBase.FixedMargin;
                this.focusMaidLabel.Top    = this.nextMaidButton.Top;
                this.focusMaidLabel.Width  = this.FontSize * 13;
                this.focusMaidLabel.Height = this.ControlHeight;
                this.focusMaidLabel.Text   = this.maidManager.sCurrent;
                this.focusMaidLabel.OnGUI();
                this.focusMaidLabel.Visible = true;
            }
            else
            {
                GUIUtil.AddGUISlider(this, this.focalLengthSlider);
            }
            GUIUtil.AddGUISlider(this, this.focalSizeSlider);
            GUIUtil.AddGUISlider(this, this.apertureSlider);

            if (this.BlurTypeValue == DepthOfFieldScatter.BlurType.DiscBlur)
            {
                GUIUtil.AddGUICheckbox(this, this.blurSampleCountBox);
            }

            GUIUtil.AddGUISlider(this, this.maxBlurSizeSlider);

            GUIUtil.AddGUICheckbox(this, this.highResolutionCheckbox);
            GUIUtil.AddGUICheckbox(this, this.nearBlurCheckbox);

            GUIUtil.AddGUISlider(this, this.foregroundOverlapSlider);

            if (this.BlurTypeValue == DepthOfFieldScatter.BlurType.DX11)
            {
                GUIUtil.AddGUISlider(this, this.dx11BokehScaleSlider);
                GUIUtil.AddGUISlider(this, this.dx11BokehIntensitySlider);
                GUIUtil.AddGUISlider(this, this.dx11BokehThreshholdSlider);
                GUIUtil.AddGUISlider(this, this.dx11SpawnHeuristicSlider);
            }

            this.focusMaidToggled = this.transformFromMaidCheckbox.Value;

            this.maidManager.Update();
        }
 override public void ShowPane()
 {
     GUIUtil.AddGUISlider(this, this.aspectWidthSlider);
     GUIUtil.AddGUISlider(this, this.aspectHeightSlider);
     GUIUtil.AddGUICheckbox(this, this.fillColorPicker);
 }