Ejemplo n.º 1
0
        override public void SetupPane()
        {
            this.intensitySlider      = new CustomSlider(ObscuranceDef.obscuranceEffect.intensity, 0f, 4f, 4);
            this.intensitySlider.Text = Translation.GetText("Obscurance", "intensity");
            this.ChildControls.Add(this.intensitySlider);

            this.radiusSlider      = new CustomSlider(ObscuranceDef.obscuranceEffect.radius, 0f, 2, 4);
            this.radiusSlider.Text = Translation.GetText("Obscurance", "radius");
            this.ChildControls.Add(this.radiusSlider);

            this.sampleCountBox               = new CustomComboBox(OBSCURANCE_SAMPLECOUNT);
            this.sampleCountBox.Text          = Translation.GetText("Obscurance", "sampleCount");
            this.sampleCountBox.SelectedIndex = (int)ObscuranceDef.obscuranceEffect.sampleCount;
            this.ChildControls.Add(this.sampleCountBox);

            this.sampleCountValueSlider      = new CustomSlider(ObscuranceDef.obscuranceEffect.sampleCountValue, 0f, 50f, 1);
            this.sampleCountValueSlider.Text = Translation.GetText("Obscurance", "sampleCountValue");
            this.ChildControls.Add(this.sampleCountValueSlider);

            this.downsamplingCheckbox      = new CustomToggleButton(ObscuranceDef.obscuranceEffect.downsampling, "toggle");
            this.downsamplingCheckbox.Text = Translation.GetText("Obscurance", "downsampling");
            this.ChildControls.Add(this.downsamplingCheckbox);

            this.occlusionSourceBox               = new CustomComboBox(OBSCURANCE_OCCLUSIONSOURCE);
            this.occlusionSourceBox.Text          = Translation.GetText("Obscurance", "occlusionSource");
            this.occlusionSourceBox.SelectedIndex = (int)ObscuranceDef.obscuranceEffect.occlusionSource;
            this.ChildControls.Add(this.occlusionSourceBox);

            this.ambientOnlyCheckbox      = new CustomToggleButton(ObscuranceDef.obscuranceEffect.ambientOnly, "toggle");
            this.ambientOnlyCheckbox.Text = Translation.GetText("Obscurance", "ambientOnly");
            this.ChildControls.Add(this.ambientOnlyCheckbox);
        }
        override public void SetupPane()
        {
            this.brightnessSlider      = new CustomSlider(BrightnessContrastGammaDef.brightnessContrastGammaEffect.brightness, -100f, 100f, 2);
            this.brightnessSlider.Text = Translation.GetText("BrightnessContrastGamma", "brightness");
            this.ChildControls.Add(this.brightnessSlider);

            this.contrastSlider      = new CustomSlider(BrightnessContrastGammaDef.brightnessContrastGammaEffect.contrast, -100f, 100f, 2);
            this.contrastSlider.Text = Translation.GetText("BrightnessContrastGamma", "contrast");
            this.ChildControls.Add(this.contrastSlider);

            this.contrastCoeffXSlider      = new CustomSlider(BrightnessContrastGammaDef.brightnessContrastGammaEffect.contrastCoeff.x, 0f, 2f, 4);
            this.contrastCoeffXSlider.Text = Translation.GetText("BrightnessContrastGamma", "contrastCoeffX");
            this.ChildControls.Add(this.contrastCoeffXSlider);

            this.contrastCoeffYSlider      = new CustomSlider(BrightnessContrastGammaDef.brightnessContrastGammaEffect.contrastCoeff.y, 0f, 2f, 4);
            this.contrastCoeffYSlider.Text = Translation.GetText("BrightnessContrastGamma", "contrastCoeffY");
            this.ChildControls.Add(this.contrastCoeffYSlider);

            this.contrastCoeffZSlider      = new CustomSlider(BrightnessContrastGammaDef.brightnessContrastGammaEffect.contrastCoeff.z, 0f, 2f, 4);
            this.contrastCoeffZSlider.Text = Translation.GetText("BrightnessContrastGamma", "contrastCoeffZ");
            this.ChildControls.Add(this.contrastCoeffZSlider);

            this.gammaSlider      = new CustomSlider(BrightnessContrastGammaDef.brightnessContrastGammaEffect.gamma, 0.1f, 9.9f, 4);
            this.gammaSlider.Text = Translation.GetText("BrightnessContrastGamma", "gamma");
            this.ChildControls.Add(this.gammaSlider);
        }
Ejemplo n.º 3
0
        override public void SetupPane()
        {
            this.scaleSlider      = new CustomSlider(HalftoneDef.halftoneEffect.scale, 0f, 100f, 2);
            this.scaleSlider.Text = Translation.GetText("Halftone", "scale");
            this.ChildControls.Add(this.scaleSlider);

            this.dotSizeSlider      = new CustomSlider(HalftoneDef.halftoneEffect.dotSize, 0f, 2f * (float)Math.PI, 4);
            this.dotSizeSlider.Text = Translation.GetText("Halftone", "dotSize");
            this.ChildControls.Add(this.dotSizeSlider);

            this.angleSlider      = new CustomSlider(HalftoneDef.halftoneEffect.angle, 0f, 2f * (float)Math.PI, 2);
            this.angleSlider.Text = Translation.GetText("Halftone", "angle");
            this.ChildControls.Add(this.angleSlider);

            this.smoothnessSlider      = new CustomSlider(HalftoneDef.halftoneEffect.smoothness, 0f, 1, 4);
            this.smoothnessSlider.Text = Translation.GetText("Halftone", "smoothness");
            this.ChildControls.Add(this.smoothnessSlider);

            this.centerXSlider      = new CustomSlider(HalftoneDef.halftoneEffect.center.x, 0f, 1f, 4);
            this.centerXSlider.Text = Translation.GetText("Halftone", "centerX");
            this.ChildControls.Add(this.centerXSlider);

            this.centerYSlider      = new CustomSlider(HalftoneDef.halftoneEffect.center.y, 0f, 1f, 4);
            this.centerYSlider.Text = Translation.GetText("Halftone", "centerY");
            this.ChildControls.Add(this.centerYSlider);

            this.desaturateCheckbox      = new CustomToggleButton(HalftoneDef.halftoneEffect.desaturate, "toggle");
            this.desaturateCheckbox.Text = Translation.GetText("Halftone", "desaturate");
            this.ChildControls.Add(this.desaturateCheckbox);
        }
        override public void SetupPane()
        {
            this.modeComboBox               = new CustomComboBox(WIGGLE_ALGORITHMS);
            this.modeComboBox.Text          = Translation.GetText("Wiggle", "mode");
            this.modeComboBox.SelectedIndex = (int)WiggleDef.wiggleEffect.mode;
            this.ChildControls.Add(this.modeComboBox);

            this.timerSlider      = new CustomSlider(WiggleDef.wiggleEffect.timer, 0f, 100f, 2);
            this.timerSlider.Text = Translation.GetText("Wiggle", "timer");
            this.ChildControls.Add(this.timerSlider);

            this.speedSlider      = new CustomSlider(WiggleDef.wiggleEffect.speed, 0f, 100f, 2);
            this.speedSlider.Text = Translation.GetText("Wiggle", "speed");
            this.ChildControls.Add(this.speedSlider);

            this.frequencySlider      = new CustomSlider(WiggleDef.wiggleEffect.frequency, 0f, 300f, 2);
            this.frequencySlider.Text = Translation.GetText("Wiggle", "frequency");
            this.ChildControls.Add(this.frequencySlider);

            this.amplitudeSlider      = new CustomSlider(WiggleDef.wiggleEffect.amplitude, 0f, 2f * (float)Math.PI, 4);
            this.amplitudeSlider.Text = Translation.GetText("Wiggle", "amplitude");
            this.ChildControls.Add(this.amplitudeSlider);

            this.automaticTimerCheckbox      = new CustomToggleButton(WiggleDef.wiggleEffect.automaticTimer, "toggle");
            this.automaticTimerCheckbox.Text = Translation.GetText("Wiggle", "automaticTimer");
            this.ChildControls.Add(this.automaticTimerCheckbox);
        }
Ejemplo n.º 5
0
 private void backgroundButton(Rect rectItem)
 {
     if (GUI.Button(rectItem, Translation.GetText("Equip", "background"), gsButton))
     {
         UpdateMenusBackground();
     }
 }
Ejemplo n.º 6
0
 private void categoryButton(string value, Rect rectItem)
 {
     if (GUI.Button(rectItem, Translation.GetText("Equip", value), gsButton))
     {
         UpdateMenus(ConstantValues.PropParts[value]);
     }
 }
        override public void SetupPane()
        {
            this.intensitySlider      = new CustomSlider(VignettingDef.vignettingEffect.intensity, -20f, 20f, 2);
            this.intensitySlider.Text = Translation.GetText("Vignetting", "intensity");
            this.ChildControls.Add(this.intensitySlider);
            this.blurSlider      = new CustomSlider(VignettingDef.vignettingEffect.blur, -20f, 20f, 2);
            this.blurSlider.Text = Translation.GetText("Vignetting", "blur");
            this.ChildControls.Add(this.blurSlider);
            this.blurSpreadSlider      = new CustomSlider(VignettingDef.vignettingEffect.blurSpread, -20f, 20f, 2);
            this.blurSpreadSlider.Text = Translation.GetText("Vignetting", "blurSpread");
            this.ChildControls.Add(this.blurSpreadSlider);

            this.modeCheckbox      = new CustomToggleButton(VignettingDef.vignettingEffect.mode == Vignetting.AberrationMode.Advanced, "toggle");
            this.modeCheckbox.Text = Translation.GetText("Vignetting", "mode");
            this.ChildControls.Add(this.modeCheckbox);

            this.chromaticAberrationSlider      = new CustomSlider(VignettingDef.vignettingEffect.chromaticAberration, -20f, 20f, 2);
            this.chromaticAberrationSlider.Text = Translation.GetText("Vignetting", "chromaticAberration");
            this.ChildControls.Add(this.chromaticAberrationSlider);
            this.luminanceDependencySlider      = new CustomSlider(VignettingDef.vignettingEffect.luminanceDependency, 0f, 2f, 4);
            this.luminanceDependencySlider.Text = Translation.GetText("Vignetting", "luminanceDependency");
            this.ChildControls.Add(this.luminanceDependencySlider);
            this.axialAberrationSlider      = new CustomSlider(VignettingDef.vignettingEffect.axialAberration, 0f, 20f, 2);
            this.axialAberrationSlider.Text = Translation.GetText("Vignetting", "axialAberration");
            this.ChildControls.Add(this.axialAberrationSlider);
            this.blurDistanceSlider      = new CustomSlider(VignettingDef.vignettingEffect.blurDistance, -20f, 20f, 2);
            this.blurDistanceSlider.Text = Translation.GetText("Vignetting", "blurDistance");
            this.ChildControls.Add(this.blurDistanceSlider);
        }
Ejemplo n.º 8
0
        override public void SetupPane()
        {
            this.modeBox               = new CustomComboBox(AA_MODES);
            this.modeBox.Text          = Translation.GetText("Antialiasing", "mode");
            this.modeBox.SelectedIndex = (int)AntialiasingDef.antialiasingEffect.mode;
            this.ChildControls.Add(this.modeBox);

            this.dlaaSharpCheckbox      = new CustomToggleButton(AntialiasingDef.antialiasingEffect.dlaaSharp, "toggle");
            this.dlaaSharpCheckbox.Text = Translation.GetText("Antialiasing", "dlaaSharp");
            this.ChildControls.Add(this.dlaaSharpCheckbox);

            this.showGeneratedNormalsCheckbox      = new CustomToggleButton(AntialiasingDef.antialiasingEffect.showGeneratedNormals, "toggle");
            this.showGeneratedNormalsCheckbox.Text = Translation.GetText("Antialiasing", "showGeneratedNormals");
            this.ChildControls.Add(this.showGeneratedNormalsCheckbox);

            this.blurRadiusSlider      = new CustomSlider(AntialiasingDef.antialiasingEffect.blurRadius, 0f, 50f, 2);
            this.blurRadiusSlider.Text = Translation.GetText("Antialiasing", "blurRadius");
            this.ChildControls.Add(this.blurRadiusSlider);

            this.edgeSharpnessSlider      = new CustomSlider(AntialiasingDef.antialiasingEffect.edgeSharpness, 0f, 10f, 2);
            this.edgeSharpnessSlider.Text = Translation.GetText("Antialiasing", "edgeSharpness");
            this.ChildControls.Add(this.edgeSharpnessSlider);

            this.edgeThresholdSlider      = new CustomSlider(AntialiasingDef.antialiasingEffect.edgeThreshold, 0f, 10f, 2);
            this.edgeThresholdSlider.Text = Translation.GetText("Antialiasing", "edgeThreshold");
            this.ChildControls.Add(this.edgeThresholdSlider);

            this.edgeThresholdMinSlider      = new CustomSlider(AntialiasingDef.antialiasingEffect.edgeThresholdMin, 0f, 10f, 2);
            this.edgeThresholdMinSlider.Text = Translation.GetText("Antialiasing", "edgeThresholdMin");
            this.ChildControls.Add(this.edgeThresholdMinSlider);

            this.offsetScaleSlider      = new CustomSlider(AntialiasingDef.antialiasingEffect.offsetScale, 0f, 10f, 2);
            this.offsetScaleSlider.Text = Translation.GetText("Antialiasing", "offsetScale");
            this.ChildControls.Add(this.offsetScaleSlider);
        }
Ejemplo n.º 9
0
        override public void SetupPane()
        {
            this.colorPicker      = new CustomColorPicker(FeedbackDef.feedbackEffect.color);
            this.colorPicker.Text = Translation.GetText("Feedback", "color");
            this.ChildControls.Add(this.colorPicker);

            this.offsetXSlider      = new CustomSlider(FeedbackDef.feedbackEffect.offsetX, -1f, 1f, 1);
            this.offsetXSlider.Text = Translation.GetText("Feedback", "offsetX");
            this.ChildControls.Add(this.offsetXSlider);

            this.offsetYSlider      = new CustomSlider(FeedbackDef.feedbackEffect.offsetY, -1f, 1f, 1);
            this.offsetYSlider.Text = Translation.GetText("Feedback", "offsetY");
            this.ChildControls.Add(this.offsetYSlider);

            this.rotationSlider      = new CustomSlider(FeedbackDef.feedbackEffect.rotation, -5f, 5f, 1);
            this.rotationSlider.Text = Translation.GetText("Feedback", "rotation");
            this.ChildControls.Add(this.rotationSlider);

            this.scaleSlider      = new CustomSlider(FeedbackDef.feedbackEffect.scale, 0.95f, 1.05f, 1);
            this.scaleSlider.Text = Translation.GetText("Feedback", "scale");
            this.ChildControls.Add(this.scaleSlider);

            this.jaggiesCheckbox      = new CustomToggleButton(FeedbackDef.feedbackEffect.jaggies, "toggle");
            this.jaggiesCheckbox.Text = Translation.GetText("Feedback", "jaggies");
            this.ChildControls.Add(this.jaggiesCheckbox);
        }
        override public void SetupPane()
        {
            this.stripAngleSlider      = new CustomSlider(ComicBookDef.comicBookEffect.stripAngle, 0f, 2f * (float)Math.PI, 4);
            this.stripAngleSlider.Text = Translation.GetText("ComicBook", "stripAngle");
            this.ChildControls.Add(this.stripAngleSlider);

            this.stripDensitySlider      = new CustomSlider(ComicBookDef.comicBookEffect.stripDensity, 0f, 500f, 2);
            this.stripDensitySlider.Text = Translation.GetText("ComicBook", "stripDensity");
            this.ChildControls.Add(this.stripDensitySlider);

            this.stripThicknessSlider      = new CustomSlider(ComicBookDef.comicBookEffect.stripThickness, 0f, 1f, 4);
            this.stripThicknessSlider.Text = Translation.GetText("ComicBook", "stripThickness");
            this.ChildControls.Add(this.stripThicknessSlider);

            this.stripLimitsXSlider      = new CustomSlider(ComicBookDef.comicBookEffect.stripLimits.x, 0f, 1f, 4);
            this.stripLimitsXSlider.Text = Translation.GetText("ComicBook", "stripLimitsX");
            this.ChildControls.Add(this.stripLimitsXSlider);

            this.stripLimitsYSlider      = new CustomSlider(ComicBookDef.comicBookEffect.stripLimits.y, 0f, 1f, 4);
            this.stripLimitsYSlider.Text = Translation.GetText("ComicBook", "stripLimitsY");
            this.ChildControls.Add(this.stripLimitsYSlider);

            this.stripInnerColorPicker        = new CustomColorPicker(ComicBookDef.comicBookEffect.stripInnerColor);
            this.stripInnerColorPicker.Text   = Translation.GetText("ComicBook", "stripInnerColor");
            this.stripInnerColorPicker.IsRGBA = false;
            this.ChildControls.Add(this.stripInnerColorPicker);

            this.stripOuterColorPicker        = new CustomColorPicker(ComicBookDef.comicBookEffect.stripOuterColor);
            this.stripOuterColorPicker.Text   = Translation.GetText("ComicBook", "stripOuterColor");
            this.stripOuterColorPicker.IsRGBA = false;
            this.ChildControls.Add(this.stripOuterColorPicker);

            this.fillColorPicker        = new CustomColorPicker(ComicBookDef.comicBookEffect.fillColor);
            this.fillColorPicker.Text   = Translation.GetText("ComicBook", "fillColor");
            this.fillColorPicker.IsRGBA = false;
            this.ChildControls.Add(this.fillColorPicker);

            this.backgroundColorPicker        = new CustomColorPicker(ComicBookDef.comicBookEffect.backgroundColor);
            this.backgroundColorPicker.Text   = Translation.GetText("ComicBook", "backgroundColor");
            this.backgroundColorPicker.IsRGBA = false;
            this.ChildControls.Add(this.backgroundColorPicker);

            this.edgeDetectionCheckbox      = new CustomToggleButton(ComicBookDef.comicBookEffect.edgeDetection, "toggle");
            this.edgeDetectionCheckbox.Text = Translation.GetText("ComicBook", "edgeDetection");
            this.ChildControls.Add(this.edgeDetectionCheckbox);

            this.edgeThresholdSlider      = new CustomSlider(ComicBookDef.comicBookEffect.edgeThreshold, 0.01f, 50f, 3);
            this.edgeThresholdSlider.Text = Translation.GetText("ComicBook", "edgeThreshold");
            this.ChildControls.Add(this.edgeThresholdSlider);

            this.edgeColorPicker      = new CustomColorPicker(ComicBookDef.comicBookEffect.edgeColor);
            this.edgeColorPicker.Text = Translation.GetText("ComicBook", "edgeColor");
            this.ChildControls.Add(this.edgeColorPicker);

            this.amountSlider      = new CustomSlider(ComicBookDef.comicBookEffect.amount, 0f, 1f, 4);
            this.amountSlider.Text = Translation.GetText("ComicBook", "amount");
            this.ChildControls.Add(this.amountSlider);
        }
Ejemplo n.º 11
0
 override public void SetupPane()
 {
     this.strengthXSlider      = new CustomSlider(FisheyeDef.fisheyeEffect.strengthX, 0f, 10f, 4);
     this.strengthXSlider.Text = Translation.GetText("Fisheye", "strengthX");
     this.ChildControls.Add(this.strengthXSlider);
     this.strengthYSlider      = new CustomSlider(FisheyeDef.fisheyeEffect.strengthY, 0f, 10f, 2);
     this.strengthYSlider.Text = Translation.GetText("Fisheye", "strengthY");
     this.ChildControls.Add(this.strengthYSlider);
 }
Ejemplo n.º 12
0
        override public void SetupPane()
        {
            this.amountSlider      = new CustomSlider(RGBSplitDef.rGBSplitEffect.amount, 0f, 500f, 2);
            this.amountSlider.Text = Translation.GetText("RGBSplit", "amount");
            this.ChildControls.Add(this.amountSlider);

            this.angleSlider      = new CustomSlider(RGBSplitDef.rGBSplitEffect.angle, 0f, 2f * (float)Math.PI, 4);
            this.angleSlider.Text = Translation.GetText("RGBSplit", "angle");
            this.ChildControls.Add(this.angleSlider);
        }
Ejemplo n.º 13
0
        override public void SetupPane()
        {
            this.extraBlurCheckbox      = new CustomToggleButton(MotionBlurDef.motionBlurEffect.extraBlur, "toggle");
            this.extraBlurCheckbox.Text = Translation.GetText("MotionBlur", "extraBlur");
            this.ChildControls.Add(this.extraBlurCheckbox);

            this.blurAmountSlider      = new CustomSlider(MotionBlurDef.motionBlurEffect.blurAmount, 0f, 1f, 4);
            this.blurAmountSlider.Text = Translation.GetText("MotionBlur", "blurAmount");
            this.ChildControls.Add(this.blurAmountSlider);
        }
Ejemplo n.º 14
0
        override public void SetupPane()
        {
            this.whitePicker        = new CustomColorPicker(WhiteBalanceDef.whiteBalanceEffect.white);
            this.whitePicker.Text   = Translation.GetText("WhiteBalance", "white");
            this.whitePicker.IsRGBA = false;
            this.ChildControls.Add(this.whitePicker);

            this.modeComboBox               = new CustomComboBox(WHITEBALANCE_BALANCEMODES);
            this.modeComboBox.Text          = Translation.GetText("WhiteBalance", "mode");
            this.modeComboBox.SelectedIndex = (int)WhiteBalanceDef.whiteBalanceEffect.mode;
            this.ChildControls.Add(this.modeComboBox);
        }
 override public void SetupPane()
 {
     this.aspectWidthSlider      = new CustomSlider(LetterboxDef.letterboxEffect.aspectWidth, 0f, 50f, 2);
     this.aspectWidthSlider.Text = Translation.GetText("Letterbox", "aspectWidth");
     this.ChildControls.Add(this.aspectWidthSlider);
     this.aspectHeightSlider      = new CustomSlider(LetterboxDef.letterboxEffect.aspectHeight, 0f, 50, 2);
     this.aspectHeightSlider.Text = Translation.GetText("Letterbox", "aspectHeight");
     this.ChildControls.Add(this.aspectHeightSlider);
     this.fillColorPicker      = new CustomColorPicker(LetterboxDef.letterboxEffect.fillColor);
     this.fillColorPicker.Text = Translation.GetText("Letterbox", "fillColor");
     this.ChildControls.Add(this.fillColorPicker);
 }
Ejemplo n.º 16
0
        override public void SetupPane()
        {
            this.resolutionBox               = new CustomComboBox(SUNSHAFTS_RESOLUTIONS);
            this.resolutionBox.Text          = Translation.GetText("SunShafts", "resolution");
            this.resolutionBox.SelectedIndex = (int)SunShaftsDef.sunShaftsEffect.resolution;
            this.ChildControls.Add(this.resolutionBox);
            this.screenBlendModeBox               = new CustomComboBox(SUNSHAFTS_BLENDMODES);
            this.screenBlendModeBox.Text          = Translation.GetText("SunShafts", "screenBlendMode");
            this.screenBlendModeBox.SelectedIndex = (int)SunShaftsDef.sunShaftsEffect.screenBlendMode;
            this.ChildControls.Add(this.screenBlendModeBox);

            this.useDepthTextureCheckbox      = new CustomToggleButton(SunShaftsDef.sunShaftsEffect.useDepthTexture, "toggle");
            this.useDepthTextureCheckbox.Text = Translation.GetText("SunShafts", "useDepthTexture");
            this.ChildControls.Add(this.useDepthTextureCheckbox);

            this.dragSourceButton        = new CustomButton();
            this.dragSourceButton.Text   = Translation.GetText("UI", "dragSource");
            this.dragSourceButton.Click += (o, e) => {
                if (SunShaftsDef.isDrag)
                {
                    SunShaftsDef.StoptDrag();
                }
                else
                {
                    SunShaftsDef.StartDrag();
                }
            };
            this.ChildControls.Add(this.dragSourceButton);

            this.sunColorPicker        = new CustomColorPicker(SunShaftsDef.sunShaftsEffect.sunColor);
            this.sunColorPicker.Text   = Translation.GetText("SunShafts", "sunColor");
            this.sunColorPicker.IsRGBA = false;
            this.ChildControls.Add(this.sunColorPicker);

            this.maxRadiusSlider      = new CustomSlider(SunShaftsDef.sunShaftsEffect.maxRadius, 0f, 1f, 4);
            this.maxRadiusSlider.Text = Translation.GetText("SunShafts", "maxRadius");
            this.ChildControls.Add(this.maxRadiusSlider);

            this.sunShaftBlurRadiusSlider      = new CustomSlider(SunShaftsDef.sunShaftsEffect.sunShaftBlurRadius, -40f, 40, 2);
            this.sunShaftBlurRadiusSlider.Text = Translation.GetText("SunShafts", "sunShaftBlurRadius");
            this.ChildControls.Add(this.sunShaftBlurRadiusSlider);
            this.radialBlurIterationsSlider      = new CustomSlider(SunShaftsDef.sunShaftsEffect.radialBlurIterations, 0f, 10f, 0);
            this.radialBlurIterationsSlider.Text = Translation.GetText("SunShafts", "radialBlurIterations");
            this.ChildControls.Add(this.radialBlurIterationsSlider);
            this.sunShaftIntensitySlider      = new CustomSlider(SunShaftsDef.sunShaftsEffect.sunShaftIntensity, 0f, 20f, 2);
            this.sunShaftIntensitySlider.Text = Translation.GetText("SunShafts", "sunShaftIntensity");
            this.ChildControls.Add(this.sunShaftIntensitySlider);

            this.useSkyBoxAlphaSlider      = new CustomSlider(SunShaftsDef.sunShaftsEffect.useSkyBoxAlpha, 0f, 50f, 2);
            this.useSkyBoxAlphaSlider.Text = Translation.GetText("SunShafts", "useSkyBoxAlpha");
            this.ChildControls.Add(this.useSkyBoxAlphaSlider);
        }
        override public void SetupPane()
        {
            this.convolutionMatrixLabel      = new CustomLabel();
            this.convolutionMatrixLabel.Text = Translation.GetText("Convolution3x3", "convolutionMatrix");
            this.ChildControls.Add(this.convolutionMatrixLabel);

            this.divisorSlider      = new CustomSlider(Convolution3x3Def.convolution3x3Effect.divisor, 0.0f, 10f, 4);
            this.divisorSlider.Text = Translation.GetText("Convolution3x3", "divisor");
            this.ChildControls.Add(this.divisorSlider);

            this.amountSlider      = new CustomSlider(Convolution3x3Def.convolution3x3Effect.amount, 0.0f, 1f, 4);
            this.amountSlider.Text = Translation.GetText("Convolution3x3", "amount");
            this.ChildControls.Add(this.amountSlider);

            this.kernelTopXField      = new CustomTextField(Convolution3x3Def.convolution3x3Effect.kernelTop.x.ToString());
            this.kernelTopXField.Text = "";
            this.ChildControls.Add(this.kernelTopXField);

            this.kernelTopYField      = new CustomTextField(Convolution3x3Def.convolution3x3Effect.kernelTop.y.ToString());
            this.kernelTopYField.Text = "";
            this.ChildControls.Add(this.kernelTopYField);

            this.kernelTopZField      = new CustomTextField(Convolution3x3Def.convolution3x3Effect.kernelTop.z.ToString());
            this.kernelTopZField.Text = "";
            this.ChildControls.Add(this.kernelTopZField);

            this.kernelMiddleXField      = new CustomTextField(Convolution3x3Def.convolution3x3Effect.kernelMiddle.x.ToString());
            this.kernelMiddleXField.Text = "";
            this.ChildControls.Add(this.kernelMiddleXField);

            this.kernelMiddleYField      = new CustomTextField(Convolution3x3Def.convolution3x3Effect.kernelMiddle.y.ToString());
            this.kernelMiddleYField.Text = "";
            this.ChildControls.Add(this.kernelMiddleYField);

            this.kernelMiddleZField      = new CustomTextField(Convolution3x3Def.convolution3x3Effect.kernelMiddle.z.ToString());
            this.kernelMiddleZField.Text = "";
            this.ChildControls.Add(this.kernelMiddleZField);

            this.kernelBottomXField      = new CustomTextField(Convolution3x3Def.convolution3x3Effect.kernelBottom.x.ToString());
            this.kernelBottomXField.Text = "";
            this.ChildControls.Add(this.kernelBottomXField);

            this.kernelBottomYField      = new CustomTextField(Convolution3x3Def.convolution3x3Effect.kernelBottom.y.ToString());
            this.kernelBottomYField.Text = "";
            this.ChildControls.Add(this.kernelBottomYField);

            this.kernelBottomZField      = new CustomTextField(Convolution3x3Def.convolution3x3Effect.kernelBottom.z.ToString());
            this.kernelBottomZField.Text = "";
            this.ChildControls.Add(this.kernelBottomZField);
        }
Ejemplo n.º 18
0
        override public void SetupPane()
        {
            this.intensitySlider      = new CustomSlider(ContrastDef.contrastEffect.intensity, -10.0f, 10.0f, 2);
            this.intensitySlider.Text = Translation.GetText("Contrast", "intensity");
            this.ChildControls.Add(this.intensitySlider);

            this.threshholdSlider      = new CustomSlider(ContrastDef.contrastEffect.threshhold, 0.0f, 1.0f, 4);
            this.threshholdSlider.Text = Translation.GetText("Contrast", "threshold");
            this.ChildControls.Add(this.threshholdSlider);

            this.blurSpreadSlider      = new CustomSlider(ContrastDef.contrastEffect.blurSpread, 0.0f, 10.0f, 2);
            this.blurSpreadSlider.Text = Translation.GetText("Contrast", "blurSpread");
            this.ChildControls.Add(this.blurSpreadSlider);
        }
        override public void SetupPane()
        {
            this.blurIterationsSlider      = new CustomSlider(BlurDef.blurEffect.blurIterations, 0f, 10f, 0);
            this.blurIterationsSlider.Text = Translation.GetText("Blur", "blurIterations");
            this.ChildControls.Add(this.blurIterationsSlider);

            this.blurSizeSlider      = new CustomSlider(BlurDef.blurEffect.blurSize, 0f, 10f, 2);
            this.blurSizeSlider.Text = Translation.GetText("Blur", "blurSize");
            this.ChildControls.Add(this.blurSizeSlider);

            this.downsampleSlider      = new CustomSlider(BlurDef.blurEffect.downsample, 1f, 4f, 0);
            this.downsampleSlider.Text = Translation.GetText("Blur", "downsample");
            this.ChildControls.Add(this.downsampleSlider);
        }
        override public void SetupPane()
        {
            this.intensitySlider      = new CustomSlider(CreaseDef.creaseEffect.intensity, -40f, 40f, 2);
            this.intensitySlider.Text = Translation.GetText("Crease", "intensity");
            this.ChildControls.Add(this.intensitySlider);

            this.softnessSlider      = new CustomSlider(CreaseDef.creaseEffect.softness, 0f, 10f, 0);
            this.softnessSlider.Text = Translation.GetText("Crease", "softness");
            this.ChildControls.Add(this.softnessSlider);

            this.spreadSlider      = new CustomSlider(CreaseDef.creaseEffect.spread, 0f, 10f, 2);
            this.spreadSlider.Text = Translation.GetText("Crease", "spread");
            this.ChildControls.Add(this.spreadSlider);
        }
        override public void SetupPane()
        {
            this.redXSlider      = new CustomSlider(ChannelMixerDef.channelMixerEffect.red.x, 0f, 100f, 4);
            this.redXSlider.Text = Translation.GetText("ChannelMixer", "redX");
            this.ChildControls.Add(this.redXSlider);

            this.redYSlider      = new CustomSlider(ChannelMixerDef.channelMixerEffect.red.y, 0f, 100f, 4);
            this.redYSlider.Text = Translation.GetText("ChannelMixer", "redY");
            this.ChildControls.Add(this.redYSlider);

            this.redZSlider      = new CustomSlider(ChannelMixerDef.channelMixerEffect.red.z, 0f, 100f, 4);
            this.redZSlider.Text = Translation.GetText("ChannelMixer", "redZ");
            this.ChildControls.Add(this.redZSlider);

            this.greenXSlider      = new CustomSlider(ChannelMixerDef.channelMixerEffect.green.x, 0f, 100f, 4);
            this.greenXSlider.Text = Translation.GetText("ChannelMixer", "greenX");
            this.ChildControls.Add(this.greenXSlider);

            this.greenYSlider      = new CustomSlider(ChannelMixerDef.channelMixerEffect.green.y, 0f, 100f, 4);
            this.greenYSlider.Text = Translation.GetText("ChannelMixer", "greenY");
            this.ChildControls.Add(this.greenYSlider);

            this.greenZSlider      = new CustomSlider(ChannelMixerDef.channelMixerEffect.green.z, 0f, 100f, 4);
            this.greenZSlider.Text = Translation.GetText("ChannelMixer", "greenZ");
            this.ChildControls.Add(this.greenZSlider);

            this.blueXSlider      = new CustomSlider(ChannelMixerDef.channelMixerEffect.blue.x, 0f, 100f, 4);
            this.blueXSlider.Text = Translation.GetText("ChannelMixer", "blueX");
            this.ChildControls.Add(this.blueXSlider);

            this.blueYSlider      = new CustomSlider(ChannelMixerDef.channelMixerEffect.blue.y, 0f, 100f, 4);
            this.blueYSlider.Text = Translation.GetText("ChannelMixer", "blueY");
            this.ChildControls.Add(this.blueYSlider);

            this.blueZSlider      = new CustomSlider(ChannelMixerDef.channelMixerEffect.blue.z, 0f, 100f, 4);
            this.blueZSlider.Text = Translation.GetText("ChannelMixer", "blueZ");
            this.ChildControls.Add(this.blueZSlider);

            this.constantXSlider      = new CustomSlider(ChannelMixerDef.channelMixerEffect.constant.x, 0f, 100f, 4);
            this.constantXSlider.Text = Translation.GetText("ChannelMixer", "constantX");
            this.ChildControls.Add(this.constantXSlider);

            this.constantYSlider      = new CustomSlider(ChannelMixerDef.channelMixerEffect.constant.y, 0f, 100f, 4);
            this.constantYSlider.Text = Translation.GetText("ChannelMixer", "constantY");
            this.ChildControls.Add(this.constantYSlider);

            this.constantZSlider      = new CustomSlider(ChannelMixerDef.channelMixerEffect.constant.z, 0f, 100f, 4);
            this.constantZSlider.Text = Translation.GetText("ChannelMixer", "constantZ");
            this.ChildControls.Add(this.constantZSlider);
        }
Ejemplo n.º 22
0
        override public void SetupPane()
        {
            this.displaceXSlider      = new CustomSlider(DoubleVisionDef.doubleVisionEffect.displace.x, -10f, 10f, 4);
            this.displaceXSlider.Text = Translation.GetText("DoubleVision", "displaceX");
            this.ChildControls.Add(this.displaceXSlider);

            this.displaceYSlider      = new CustomSlider(DoubleVisionDef.doubleVisionEffect.displace.y, -10f, 10f, 4);
            this.displaceYSlider.Text = Translation.GetText("DoubleVision", "displaceY");
            this.ChildControls.Add(this.displaceYSlider);

            this.amountSlider      = new CustomSlider(DoubleVisionDef.doubleVisionEffect.amount, 0f, 1f, 4);
            this.amountSlider.Text = Translation.GetText("DoubleVision", "amount");
            this.ChildControls.Add(this.amountSlider);
        }
        override public void SetupPane()
        {
            this.amountSlider      = new CustomSlider(LookupFilterDef.lookupFilterEffect.amount, 0f, 1f, 4);
            this.amountSlider.Text = Translation.GetText("LookupFilter", "amount");
            this.ChildControls.Add(this.amountSlider);

            this.forceCompatibilityCheckbox      = new CustomToggleButton(LookupFilterDef.lookupFilterEffect.forceCompatibility, "toggle");
            this.forceCompatibilityCheckbox.Text = Translation.GetText("LookupFilter", "forceCompatibility");
            this.ChildControls.Add(this.forceCompatibilityCheckbox);

            this.lookupTexturePicker      = new CustomImagePicker(LookupFilterDef.lookupFilterEffect.lookupTexture, LookupFilterDef.lookupTextureFile, ConstantValues.ImageDirsLUT);
            this.lookupTexturePicker.Text = Translation.GetText("LookupFilter", "lookupTexture");
            this.ChildControls.Add(this.lookupTexturePicker);
        }
        override public void SetupPane()
        {
            this.amountSlider      = new CustomSlider(BlendDef.blendEffect.amount, 0f, 1f, 4);
            this.amountSlider.Text = Translation.GetText("Blend", "amount");
            this.ChildControls.Add(this.amountSlider);

            this.modeComboBox               = new CustomComboBox(BLEND_MODES);
            this.modeComboBox.Text          = Translation.GetText("Blend", "mode");
            this.modeComboBox.SelectedIndex = (int)BlendDef.blendEffect.mode;
            this.ChildControls.Add(this.modeComboBox);

            this.texturePicker      = new CustomImagePicker(BlendDef.blendEffect.texture, BlendDef.textureFile, ConstantValues.ImageDirsAll);
            this.texturePicker.Text = Translation.GetText("Blend", "texture");
            this.ChildControls.Add(this.texturePicker);
        }
 override public void SetupPane()
 {
     this.scanLineJitterSlider      = new CustomSlider(AnalogGlitchDef.analogGlitchEffect.scanLineJitter, 0f, 1f, 4);
     this.scanLineJitterSlider.Text = Translation.GetText("AnalogGlitch", "scanLineJitter");
     this.ChildControls.Add(this.scanLineJitterSlider);
     this.verticalJumpSlider      = new CustomSlider(AnalogGlitchDef.analogGlitchEffect.verticalJump, 0f, 1f, 4);
     this.verticalJumpSlider.Text = Translation.GetText("AnalogGlitch", "verticalJump");
     this.ChildControls.Add(this.verticalJumpSlider);
     this.horizontalShakeSlider      = new CustomSlider(AnalogGlitchDef.analogGlitchEffect.horizontalShake, 0f, 1f, 4);
     this.horizontalShakeSlider.Text = Translation.GetText("AnalogGlitch", "horizontalShake");
     this.ChildControls.Add(this.horizontalShakeSlider);
     this.colorDriftSlider      = new CustomSlider(AnalogGlitchDef.analogGlitchEffect.colorDrift, 0f, 1f, 4);
     this.colorDriftSlider.Text = Translation.GetText("AnalogGlitch", "colorDrift");
     this.ChildControls.Add(this.colorDriftSlider);
 }
Ejemplo n.º 26
0
 override public void SetupPane()
 {
     this.doodSlider      = new CustomSlider(ExampleDef.exampleEffect.dood, 1f, 100f, );
     this.doodSlider.Text = Translation.GetText("Example", "dood");
     this.ChildControls.Add(this.doodSlider);
     this.lightTypeComboBox               = new CustomComboBox(LIGHT_TYPES);
     this.lightTypeComboBox.Text          = Translation.GetText("Example", "lightType");
     this.lightTypeComboBox.SelectedIndex = (int)ExampleDef.exampleEffect.lightType;
     this.ChildControls.Add(this.lightTypeComboBox);
     this.isWorkingCheckbox      = new CustomToggleButton(ExampleDef.exampleEffect.isWorking, "toggle");
     this.isWorkingCheckbox.Text = Translation.GetText("Example", "isWorking");
     this.ChildControls.Add(this.isWorkingCheckbox);
     this.backgroundColorPicker      = new CustomColorPicker(ExampleDef.exampleEffect.backgroundColor);
     this.backgroundColorPicker.Text = Translation.GetText("Example", "backgroundColor");
     this.ChildControls.Add(this.backgroundColorPicker);
 }
Ejemplo n.º 27
0
        override public void SetupPane()
        {
            this.dx11GrainCheckbox      = new CustomToggleButton(NoiseAndGrainDef.noiseAndGrainEffect.dx11Grain, "toggle");
            this.dx11GrainCheckbox.Text = Translation.GetText("NoiseAndGrain", "dx11Grain");
            this.ChildControls.Add(this.dx11GrainCheckbox);

            this.monochromeCheckbox      = new CustomToggleButton(NoiseAndGrainDef.noiseAndGrainEffect.monochrome, "toggle");
            this.monochromeCheckbox.Text = Translation.GetText("NoiseAndGrain", "monochrome");
            this.ChildControls.Add(this.monochromeCheckbox);

            this.filterModeBox               = new CustomComboBox(NOISEANDGRAIN_MODES);
            this.filterModeBox.Text          = Translation.GetText("NoiseAndGrain", "filterMode");
            this.filterModeBox.SelectedIndex = (int)NoiseAndGrainDef.noiseAndGrainEffect.filterMode;
            this.ChildControls.Add(this.filterModeBox);

            this.intensityMultiplierSlider      = new CustomSlider(NoiseAndGrainDef.noiseAndGrainEffect.intensityMultiplier, 0f, 10f, 2);
            this.intensityMultiplierSlider.Text = Translation.GetText("NoiseAndGrain", "intensityMultiplier");
            this.ChildControls.Add(this.intensityMultiplierSlider);
            this.generalIntensitySlider      = new CustomSlider(NoiseAndGrainDef.noiseAndGrainEffect.generalIntensity, 0f, 10f, 2);
            this.generalIntensitySlider.Text = Translation.GetText("NoiseAndGrain", "generalIntensity");
            this.ChildControls.Add(this.generalIntensitySlider);
            this.blackIntensitySlider      = new CustomSlider(NoiseAndGrainDef.noiseAndGrainEffect.blackIntensity, 0f, 10f, 2);
            this.blackIntensitySlider.Text = Translation.GetText("NoiseAndGrain", "blackIntensity");
            this.ChildControls.Add(this.blackIntensitySlider);
            this.whiteIntensitySlider      = new CustomSlider(NoiseAndGrainDef.noiseAndGrainEffect.whiteIntensity, 0f, 10f, 2);
            this.whiteIntensitySlider.Text = Translation.GetText("NoiseAndGrain", "whiteIntensity");
            this.ChildControls.Add(this.whiteIntensitySlider);
            this.midGreySlider      = new CustomSlider(NoiseAndGrainDef.noiseAndGrainEffect.midGrey, 0f, 1f, 4);
            this.midGreySlider.Text = Translation.GetText("NoiseAndGrain", "midGrey");
            this.ChildControls.Add(this.midGreySlider);
            this.softnessSlider      = new CustomSlider(NoiseAndGrainDef.noiseAndGrainEffect.softness, 0f, 1f, 4);
            this.softnessSlider.Text = Translation.GetText("NoiseAndGrain", "softness");
            this.ChildControls.Add(this.softnessSlider);

            this.monochromeTilingSlider      = new CustomSlider(NoiseAndGrainDef.noiseAndGrainEffect.monochromeTiling, 0f, 100f, 2);
            this.monochromeTilingSlider.Text = Translation.GetText("NoiseAndGrain", "monochromeTiling");
            this.ChildControls.Add(this.monochromeTilingSlider);
            this.tilingRedSlider      = new CustomSlider(NoiseAndGrainDef.noiseAndGrainEffect.tiling.x, 0f, 100f, 2);
            this.tilingRedSlider.Text = Translation.GetText("NoiseAndGrain", "tilingRed");
            this.ChildControls.Add(this.tilingRedSlider);
            this.tilingGreenSlider      = new CustomSlider(NoiseAndGrainDef.noiseAndGrainEffect.tiling.y, 0f, 100f, 2);
            this.tilingGreenSlider.Text = Translation.GetText("NoiseAndGrain", "tilingGreen");
            this.ChildControls.Add(this.tilingGreenSlider);
            this.tilingBlueSlider      = new CustomSlider(NoiseAndGrainDef.noiseAndGrainEffect.tiling.z, 0f, 100f, 2);
            this.tilingBlueSlider.Text = Translation.GetText("NoiseAndGrain", "tilingBlue");
            this.ChildControls.Add(this.tilingBlueSlider);
        }
Ejemplo n.º 28
0
        override public void SetupPane()
        {
            this.redSourceBox               = new CustomComboBox(CHANNELS);
            this.redSourceBox.Text          = Translation.GetText("ChannelSwap", "redSource");
            this.redSourceBox.SelectedIndex = 0;
            this.ChildControls.Add(this.redSourceBox);

            this.greenSourceBox               = new CustomComboBox(CHANNELS);
            this.greenSourceBox.Text          = Translation.GetText("ChannelSwap", "greenSource");
            this.greenSourceBox.SelectedIndex = 1;
            this.ChildControls.Add(this.greenSourceBox);

            this.blueSourceBox               = new CustomComboBox(CHANNELS);
            this.blueSourceBox.Text          = Translation.GetText("ChannelSwap", "blueSource");
            this.blueSourceBox.SelectedIndex = 2;
            this.ChildControls.Add(this.blueSourceBox);
        }
Ejemplo n.º 29
0
        override public void SetupPane()
        {
            this.automaticPhaseCheckbox      = new CustomToggleButton(AnalogTVDef.analogTVEffect.automaticPhase, "toggle");
            this.automaticPhaseCheckbox.Text = Translation.GetText("AnalogTV", "automaticPhase");
            this.ChildControls.Add(this.automaticPhaseCheckbox);

            this.phaseSlider      = new CustomSlider(AnalogTVDef.analogTVEffect.phase, 0f, 180f, 2);
            this.phaseSlider.Text = Translation.GetText("AnalogTV", "phase");
            this.ChildControls.Add(this.phaseSlider);

            this.convertToGrayscaleCheckbox      = new CustomToggleButton(AnalogTVDef.analogTVEffect.convertToGrayscale, "toggle");
            this.convertToGrayscaleCheckbox.Text = Translation.GetText("AnalogTV", "convertToGrayscale");
            this.ChildControls.Add(this.convertToGrayscaleCheckbox);

            this.noiseIntensitySlider      = new CustomSlider(AnalogTVDef.analogTVEffect.noiseIntensity, 0f, 1f, 4);
            this.noiseIntensitySlider.Text = Translation.GetText("AnalogTV", "noiseIntensity");
            this.ChildControls.Add(this.noiseIntensitySlider);

            this.scanlinesIntensitySlider      = new CustomSlider(AnalogTVDef.analogTVEffect.scanlinesIntensity, 0f, 2f, 4);
            this.scanlinesIntensitySlider.Text = Translation.GetText("AnalogTV", "scanlinesIntensity");
            this.ChildControls.Add(this.scanlinesIntensitySlider);

            this.scanlinesCountSlider      = new CustomSlider(AnalogTVDef.analogTVEffect.scanlinesCount, 0f, 4096f, 0);
            this.scanlinesCountSlider.Text = Translation.GetText("AnalogTV", "scanlinesCount");
            this.ChildControls.Add(this.scanlinesCountSlider);

            this.scanlinesOffsetSlider      = new CustomSlider(AnalogTVDef.analogTVEffect.scanlinesOffset, 0f, 10f, 2);
            this.scanlinesOffsetSlider.Text = Translation.GetText("AnalogTV", "scanlinesOffset");
            this.ChildControls.Add(this.scanlinesOffsetSlider);

            this.verticalScanlinesCheckbox      = new CustomToggleButton(AnalogTVDef.analogTVEffect.verticalScanlines, "toggle");
            this.verticalScanlinesCheckbox.Text = Translation.GetText("AnalogTV", "verticalScanlines");
            this.ChildControls.Add(this.verticalScanlinesCheckbox);

            this.distortionSlider      = new CustomSlider(AnalogTVDef.analogTVEffect.distortion, -2f, 2f, 4);
            this.distortionSlider.Text = Translation.GetText("AnalogTV", "distortion");
            this.ChildControls.Add(this.distortionSlider);

            this.cubicDistortionSlider      = new CustomSlider(AnalogTVDef.analogTVEffect.cubicDistortion, -2f, 2f, 4);
            this.cubicDistortionSlider.Text = Translation.GetText("AnalogTV", "cubicDistortion");
            this.ChildControls.Add(this.cubicDistortionSlider);

            this.scaleSlider      = new CustomSlider(AnalogTVDef.analogTVEffect.scale, 0.01f, 2f, 4);
            this.scaleSlider.Text = Translation.GetText("AnalogTV", "scale");
            this.ChildControls.Add(this.scaleSlider);
        }
        override public void SetupPane()
        {
            this.whitePicker        = new CustomColorPicker(DynamicLookupDef.dynamicLookupEffect.white);
            this.whitePicker.Text   = Translation.GetText("DynamicLookup", "white");
            this.whitePicker.IsRGBA = false;
            this.ChildControls.Add(this.whitePicker);

            this.blackPicker        = new CustomColorPicker(DynamicLookupDef.dynamicLookupEffect.black);
            this.blackPicker.Text   = Translation.GetText("DynamicLookup", "black");
            this.blackPicker.IsRGBA = false;
            this.ChildControls.Add(this.blackPicker);

            this.redPicker        = new CustomColorPicker(DynamicLookupDef.dynamicLookupEffect.red);
            this.redPicker.Text   = Translation.GetText("DynamicLookup", "red");
            this.redPicker.IsRGBA = false;
            this.ChildControls.Add(this.redPicker);

            this.greenPicker        = new CustomColorPicker(DynamicLookupDef.dynamicLookupEffect.green);
            this.greenPicker.Text   = Translation.GetText("DynamicLookup", "green");
            this.greenPicker.IsRGBA = false;
            this.ChildControls.Add(this.greenPicker);

            this.bluePicker        = new CustomColorPicker(DynamicLookupDef.dynamicLookupEffect.blue);
            this.bluePicker.Text   = Translation.GetText("DynamicLookup", "blue");
            this.bluePicker.IsRGBA = false;
            this.ChildControls.Add(this.bluePicker);

            this.yellowPicker        = new CustomColorPicker(DynamicLookupDef.dynamicLookupEffect.yellow);
            this.yellowPicker.Text   = Translation.GetText("DynamicLookup", "yellow");
            this.yellowPicker.IsRGBA = false;
            this.ChildControls.Add(this.yellowPicker);

            this.magentaPicker        = new CustomColorPicker(DynamicLookupDef.dynamicLookupEffect.magenta);
            this.magentaPicker.Text   = Translation.GetText("DynamicLookup", "magenta");
            this.magentaPicker.IsRGBA = false;
            this.ChildControls.Add(this.magentaPicker);

            this.cyanPicker        = new CustomColorPicker(DynamicLookupDef.dynamicLookupEffect.cyan);
            this.cyanPicker.Text   = Translation.GetText("DynamicLookup", "cyan");
            this.cyanPicker.IsRGBA = false;
            this.ChildControls.Add(this.cyanPicker);

            this.amountSlider      = new CustomSlider(DynamicLookupDef.dynamicLookupEffect.amount, 0f, 1f, 4);
            this.amountSlider.Text = Translation.GetText("DynamicLookup", "amount");
            this.ChildControls.Add(this.amountSlider);
        }