mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Add test case of DHO setting LifetimeStart in OnApply
This commit is contained in:
@ -37,6 +37,8 @@ namespace osu.Game.Rulesets.Objects
|
||||
startTimeBindable.BindTo(HitObject.StartTimeBindable);
|
||||
startTimeBindable.BindValueChanged(_ => setInitialLifetime(), true);
|
||||
|
||||
// It is important to subscribe to this event before applied to a DrawableHitObject.
|
||||
// Otherwise DHO cannot overwrite LifetimeStart set in setInitialLifetime.
|
||||
HitObject.DefaultsApplied += _ => setInitialLifetime();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user