mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:52:55 +08:00
Remove unnecessary new event
This commit is contained in:
parent
0a2e41884e
commit
a0966305d4
@ -42,19 +42,11 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
{
|
||||
foreach (var d in drawables.OfType<DrawableOsuHitObject>())
|
||||
{
|
||||
d.ApplyCustomValues += ApplyHiddenValues;
|
||||
d.ApplyCustomUpdateState += ApplyHiddenState;
|
||||
d.FadeInDuration = preEmpt * fade_in_duration_multiplier;
|
||||
}
|
||||
}
|
||||
|
||||
protected void ApplyHiddenValues(DrawableHitObject drawable)
|
||||
{
|
||||
if (!(drawable is DrawableOsuHitObject d))
|
||||
return;
|
||||
|
||||
d.FadeInDuration = preEmpt * fade_in_duration_multiplier;
|
||||
}
|
||||
|
||||
protected void ApplyHiddenState(DrawableHitObject drawable, ArmedState state)
|
||||
{
|
||||
if (!(drawable is DrawableOsuHitObject d))
|
||||
|
@ -120,9 +120,6 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
|
||||
State.ValueChanged += state =>
|
||||
{
|
||||
// apply any custom values
|
||||
ApplyCustomValues?.Invoke(this);
|
||||
|
||||
UpdateState(state);
|
||||
|
||||
// apply any custom state overrides
|
||||
@ -253,11 +250,6 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
nestedHitObjects.Add(h);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bind to apply custom values.
|
||||
/// </summary>
|
||||
public event Action<DrawableHitObject> ApplyCustomValues;
|
||||
|
||||
/// <summary>
|
||||
/// Bind to apply a custom state which can override the default implementation.
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user