mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
created option to override values before UpdateState is called
This commit is contained in:
@ -44,6 +44,14 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
d.ApplyCustomUpdateState += ApplyHiddenState;
|
||||
}
|
||||
|
||||
protected void ApplyHiddenValues(DrawableHitObject drawable)
|
||||
{
|
||||
if (!(drawable is DrawableOsuHitObject d))
|
||||
return;
|
||||
|
||||
d.FadeIn = preEmpt * fade_in_duration_multiplier;
|
||||
}
|
||||
|
||||
protected void ApplyHiddenState(DrawableHitObject drawable, ArmedState state)
|
||||
{
|
||||
if (!(drawable is DrawableOsuHitObject d))
|
||||
@ -58,8 +66,6 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
// new duration from completed fade in to end (before fading out)
|
||||
var longFadeDuration = ((d.HitObject as IHasEndTime)?.EndTime ?? d.HitObject.StartTime) - fadeOutStartTime;
|
||||
|
||||
d.FadeIn = fadeInDuration;
|
||||
|
||||
switch (drawable)
|
||||
{
|
||||
case DrawableHitCircle circle:
|
||||
|
Reference in New Issue
Block a user