diff --git a/Assets/ThemeBundles/DepartureToMultiverse/Scripts/EditorCore/Environment/DTMRandomGridFloor_Editor.cs b/Assets/ThemeBundles/DepartureToMultiverse/Scripts/EditorCore/Environment/DTMRandomGridFloor_Editor.cs index 881ee730..c1466bc1 100644 --- a/Assets/ThemeBundles/DepartureToMultiverse/Scripts/EditorCore/Environment/DTMRandomGridFloor_Editor.cs +++ b/Assets/ThemeBundles/DepartureToMultiverse/Scripts/EditorCore/Environment/DTMRandomGridFloor_Editor.cs @@ -25,13 +25,13 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse var container = inspector.GenerateContainer("DTMFramesFloor"); var subcontainer = container.GenerateSubcontainer(3); - inspector.GenerateInputField(this, subcontainer, "Pattern Size X", nameof(patternSizeX)).AddListenerFunction(UpdateMaterialProperties); - inspector.GenerateInputField(this, subcontainer, "Pattern Size Y", nameof(patternSizeY)).AddListenerFunction(UpdateMaterialProperties); - inspector.GenerateInputField(this, subcontainer, "Grid Density", nameof(gridDensity)).AddListenerFunction(UpdateMaterialProperties); - inspector.GenerateInputField(this, subcontainer, "Time Angle", nameof(timeAngle)).AddListenerFunction(UpdateMaterialProperties); - inspector.GenerateInputField(this, subcontainer, "Step A", nameof(stepA)).AddListenerFunction(UpdateMaterialProperties); - inspector.GenerateInputField(this, subcontainer, "Step B", nameof(stepB)).AddListenerFunction(UpdateMaterialProperties); - inspector.GenerateInputField(this, subcontainer, "Base Speed", nameof(baseSpeed)).AddListenerFunction(UpdateMaterialProperties); + inspector.GenerateSlider(this, subcontainer, "Pattern Size X", nameof(patternSizeX), min: 1, max: 500).AddListenerFunction(UpdateMaterialProperties); + inspector.GenerateSlider(this, subcontainer, "Pattern Size Y", nameof(patternSizeY), min: 1, max: 500).AddListenerFunction(UpdateMaterialProperties); + inspector.GenerateSlider(this, subcontainer, "Grid Density", nameof(gridDensity), min: 0.1f, max: 10).AddListenerFunction(UpdateMaterialProperties); + inspector.GenerateSlider(this, subcontainer, "Time Angle", nameof(timeAngle), min: 0, max: 1).AddListenerFunction(UpdateMaterialProperties); + inspector.GenerateSlider(this, subcontainer, "Step A", nameof(stepA), min: 0, max: 1).AddListenerFunction(UpdateMaterialProperties); + inspector.GenerateSlider(this, subcontainer, "Step B", nameof(stepB), min: 0, max: 1).AddListenerFunction(UpdateMaterialProperties); + inspector.GenerateSlider(this, subcontainer, "Base Speed", nameof(baseSpeed), min: 0, max: 10).AddListenerFunction(UpdateMaterialProperties); inspector.GenerateToggle(this, subcontainer, "Enable Outer Border", nameof(enableOuterBorder)).AddListenerFunction(UpdateMaterialProperties); @@ -39,10 +39,10 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse inspector.GenerateBaseColorPicker(this, colorContainer, "Outer Border Color", nameof(outerBorderColor)).AddListenerFunction(UpdateMaterialProperties); var subcontainer2 = container.GenerateSubcontainer(3); - inspector.GenerateInputField(this, subcontainer2, "Outer Border Width", nameof(outerBorderWidth)).AddListenerFunction(UpdateMaterialProperties); + inspector.GenerateSlider(this, subcontainer2, "Outer Border Width", nameof(outerBorderWidth), min: 0, max: 0.5f).AddListenerFunction(UpdateMaterialProperties); - inspector.GenerateInputField(this, subcontainer2, "Fade Far", nameof(fadeFar)).AddListenerFunction(UpdateMaterialProperties); - inspector.GenerateInputField(this, subcontainer2, "Fade Near", nameof(fadeNear)).AddListenerFunction(UpdateMaterialProperties); + inspector.GenerateSlider(this, subcontainer2, "Fade Far", nameof(fadeFar), min: 1, max: 500).AddListenerFunction(UpdateMaterialProperties); + inspector.GenerateSlider(this, subcontainer2, "Fade Near", nameof(fadeNear), min: 0, max: 200).AddListenerFunction(UpdateMaterialProperties); } #endregion }