From 7ea1f1d8c30650468b4faa526c039e2043fa6772 Mon Sep 17 00:00:00 2001 From: TRADER_FOER Date: Sun, 3 May 2026 00:05:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E4=BA=86=E8=BF=99=E4=B8=AA=E5=BF=98?= =?UTF-8?q?=E4=BA=86=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: TRADER_FOER --- .../Environment/DTMRandomGridFloor_Editor.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 }