1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:43:21 +08:00

Fix InspectCode issues

This commit is contained in:
Alden Wu 2022-10-03 19:20:51 -07:00
parent ccef189b81
commit eaab0deef3
2 changed files with 9 additions and 8 deletions

View File

@ -19,14 +19,11 @@ namespace osu.Game.Rulesets.Osu.Tests
{
AddStep("Create smoke", () =>
{
SetContents(_ =>
{
return new SmokingInputManager
SetContents(_ => new SmokingInputManager
{
RelativeSizeAxes = Axes.Both,
Size = new Vector2(0.95f),
Child = new TestSmokeContainer { RelativeSizeAxes = Axes.Both },
};
});
});
}

View File

@ -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,10 +49,13 @@ 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;
}
}
}
protected override bool OnMouseMove(MouseMoveEvent e)
{