mirror of
https://github.com/osukey/osukey.git
synced 2025-06-25 05:07:59 +09:00
Remove skinnable parents at the same time as their smoke children
This commit is contained in:
parent
929eb8559e
commit
c1da3bc9cf
@ -7,6 +7,7 @@ using osu.Framework.Graphics.Containers;
|
|||||||
using osu.Framework.Input;
|
using osu.Framework.Input;
|
||||||
using osu.Framework.Input.Bindings;
|
using osu.Framework.Input.Bindings;
|
||||||
using osu.Framework.Input.Events;
|
using osu.Framework.Input.Events;
|
||||||
|
using osu.Game.Rulesets.Osu.Skinning;
|
||||||
using osu.Game.Rulesets.Osu.Skinning.Default;
|
using osu.Game.Rulesets.Osu.Skinning.Default;
|
||||||
using osu.Game.Skinning;
|
using osu.Game.Skinning;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
@ -44,6 +45,9 @@ namespace osu.Game.Rulesets.Osu.UI
|
|||||||
{
|
{
|
||||||
isSmoking = false;
|
isSmoking = false;
|
||||||
SmokeEnded?.Invoke(Time.Current);
|
SmokeEnded?.Invoke(Time.Current);
|
||||||
|
|
||||||
|
foreach (SkinnableDrawable skinnable in Children)
|
||||||
|
skinnable.LifetimeEnd = skinnable.Drawable.LifetimeEnd;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user