mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
created option to override values before UpdateState is called
This commit is contained in:
@ -120,6 +120,9 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
|
||||
State.ValueChanged += state =>
|
||||
{
|
||||
// apply any custom values
|
||||
ApplyCustomValues?.Invoke(this);
|
||||
|
||||
UpdateState(state);
|
||||
|
||||
// apply any custom state overrides
|
||||
@ -250,6 +253,11 @@ 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>
|
||||
|
Reference in New Issue
Block a user