static void Postfix(bool firstActivation, PercentSlider ____speedSlider, PracticeSettings ____practiceSettings)
        {
            if (!firstActivation)
            {
                return;
            }

            int minSpeed = PluginConfig.instance.minSpeed;
            int maxSpeed = PluginConfig.instance.maxSpeed;
            int stepSize = Math.Max(1, PluginConfig.instance.stepSize);

            maxSpeed -= (maxSpeed - minSpeed) % stepSize;

            ____speedSlider.minValue      = minSpeed / 100f;
            ____speedSlider.maxValue      = maxSpeed / 100f;
            ____speedSlider.numberOfSteps = (maxSpeed - minSpeed) / stepSize + 1;

            ____speedSlider.value             = Mathf.Clamp(____practiceSettings.songSpeedMul, ____speedSlider.minValue, ____speedSlider.maxValue);
            ____practiceSettings.songSpeedMul = ____speedSlider.value;
        }
Exemple #2
0
 private static void Postfix(PercentSlider ____speedSlider)
 {
     // 21 => 31
     ____speedSlider.numberOfSteps = 31;
 }