mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 08:47:51 +08:00
Adjust presets and rename more
This commit is contained in:
parent
c9d4da65d2
commit
ced2d9749d
@ -33,8 +33,8 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
public override string Description => @"Play with no approach circles and fading notes for a slight score advantage.";
|
public override string Description => @"Play with no approach circles and fading notes for a slight score advantage.";
|
||||||
public override double ScoreMultiplier => 1.06;
|
public override double ScoreMultiplier => 1.06;
|
||||||
|
|
||||||
private const double fade_in_speed_multiplier = 0.6;
|
private const double fade_in_duration_multiplier = 0.4;
|
||||||
private const double fade_out_speed_multiplier = 0.3;
|
private const double fade_out_duration_multiplier = 0.3;
|
||||||
|
|
||||||
private float preEmpt => DrawableOsuHitObject.TIME_PREEMPT;
|
private float preEmpt => DrawableOsuHitObject.TIME_PREEMPT;
|
||||||
|
|
||||||
@ -50,10 +50,10 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
var fadeInStartTime = d.HitObject.StartTime - preEmpt;
|
var fadeInStartTime = d.HitObject.StartTime - preEmpt;
|
||||||
var fadeInDuration = preEmpt * fade_in_speed_multiplier;
|
var fadeInDuration = preEmpt * fade_in_duration_multiplier;
|
||||||
|
|
||||||
var fadeOutStartTime = fadeInStartTime + fadeInDuration;
|
var fadeOutStartTime = fadeInStartTime + fadeInDuration;
|
||||||
var fadeOutDuration = preEmpt * fade_out_speed_multiplier;
|
var fadeOutDuration = preEmpt * fade_out_duration_multiplier;
|
||||||
|
|
||||||
// new duration from completed fade in to end (before fading out)
|
// new duration from completed fade in to end (before fading out)
|
||||||
var newDuration = ((d.HitObject as IHasEndTime)?.EndTime ?? d.HitObject.StartTime) - fadeOutStartTime;
|
var newDuration = ((d.HitObject as IHasEndTime)?.EndTime ?? d.HitObject.StartTime) - fadeOutStartTime;
|
||||||
@ -67,6 +67,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
case DrawableHitCircle circle:
|
case DrawableHitCircle circle:
|
||||||
// we don't want to see the approach circle
|
// we don't want to see the approach circle
|
||||||
circle.ApproachCircle.Hide();
|
circle.ApproachCircle.Hide();
|
||||||
|
|
||||||
// prolong the hitcircle long enough so misses are still possible
|
// prolong the hitcircle long enough so misses are still possible
|
||||||
circle.LifetimeEnd = circle.HitObject.StartTime + Math.Max(fadeOutDuration, circle.HitObject.HitWindowFor(HitResult.Miss));
|
circle.LifetimeEnd = circle.HitObject.StartTime + Math.Max(fadeOutDuration, circle.HitObject.HitWindowFor(HitResult.Miss));
|
||||||
circle.FadeIn(fadeInDuration).Then().FadeOut(fadeOutDuration); // override fade in as it somehow gets cut otherwise
|
circle.FadeIn(fadeInDuration).Then().FadeOut(fadeOutDuration); // override fade in as it somehow gets cut otherwise
|
||||||
@ -75,6 +76,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
using (slider.BeginAbsoluteSequence(fadeOutStartTime, true))
|
using (slider.BeginAbsoluteSequence(fadeOutStartTime, true))
|
||||||
{
|
{
|
||||||
slider.Body.FadeOut(newDuration, Easing.Out);
|
slider.Body.FadeOut(newDuration, Easing.Out);
|
||||||
|
|
||||||
// delay a bit less to let the sliderball fade out peacefully instead of having a hard cut
|
// delay a bit less to let the sliderball fade out peacefully instead of having a hard cut
|
||||||
using (slider.BeginDelayedSequence(newDuration - fadeOutDuration, true))
|
using (slider.BeginDelayedSequence(newDuration - fadeOutDuration, true))
|
||||||
{
|
{
|
||||||
@ -91,6 +93,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
using (spinner.BeginAbsoluteSequence(fadeOutStartTime, true))
|
using (spinner.BeginAbsoluteSequence(fadeOutStartTime, true))
|
||||||
{
|
{
|
||||||
var sequence = spinner.Delay(newDuration).FadeOut(fadeOutDuration);
|
var sequence = spinner.Delay(newDuration).FadeOut(fadeOutDuration);
|
||||||
|
|
||||||
// speed up the end sequence accordingly
|
// speed up the end sequence accordingly
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
@ -101,6 +104,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
sequence.ScaleTo(spinner.Scale * 0.8f, fadeOutDuration * 2, Easing.Out);
|
sequence.ScaleTo(spinner.Scale * 0.8f, fadeOutDuration * 2, Easing.Out);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
sequence.Expire();
|
sequence.Expire();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user