mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 14:50:54 +08:00
Fix InspectCode issues
This commit is contained in:
@@ -19,14 +19,11 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
{
|
||||
AddStep("Create smoke", () =>
|
||||
{
|
||||
SetContents(_ =>
|
||||
SetContents(_ => new SmokingInputManager
|
||||
{
|
||||
return new SmokingInputManager
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Size = new Vector2(0.95f),
|
||||
Child = new TestSmokeContainer { RelativeSizeAxes = Axes.Both },
|
||||
};
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Size = new Vector2(0.95f),
|
||||
Child = new TestSmokeContainer { RelativeSizeAxes = Axes.Both },
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
using System;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Input;
|
||||
using osu.Framework.Input.Bindings;
|
||||
@@ -48,8 +49,11 @@ namespace osu.Game.Rulesets.Osu.UI
|
||||
isSmoking = false;
|
||||
SmokeEnded?.Invoke(Time.Current);
|
||||
|
||||
foreach (SkinnableDrawable skinnable in Children)
|
||||
foreach (Drawable child in Children)
|
||||
{
|
||||
var skinnable = (SkinnableDrawable)child;
|
||||
skinnable.LifetimeEnd = skinnable.Drawable.LifetimeEnd;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user