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:
parent
ccef189b81
commit
eaab0deef3
@ -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 },
|
||||
};
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user