mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:03:13 +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", () =>
|
AddStep("Create smoke", () =>
|
||||||
{
|
{
|
||||||
SetContents(_ =>
|
SetContents(_ => new SmokingInputManager
|
||||||
{
|
{
|
||||||
return new SmokingInputManager
|
RelativeSizeAxes = Axes.Both,
|
||||||
{
|
Size = new Vector2(0.95f),
|
||||||
RelativeSizeAxes = Axes.Both,
|
Child = new TestSmokeContainer { RelativeSizeAxes = Axes.Both },
|
||||||
Size = new Vector2(0.95f),
|
|
||||||
Child = new TestSmokeContainer { RelativeSizeAxes = Axes.Both },
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Input;
|
using osu.Framework.Input;
|
||||||
using osu.Framework.Input.Bindings;
|
using osu.Framework.Input.Bindings;
|
||||||
@ -48,8 +49,11 @@ namespace osu.Game.Rulesets.Osu.UI
|
|||||||
isSmoking = false;
|
isSmoking = false;
|
||||||
SmokeEnded?.Invoke(Time.Current);
|
SmokeEnded?.Invoke(Time.Current);
|
||||||
|
|
||||||
foreach (SkinnableDrawable skinnable in Children)
|
foreach (Drawable child in Children)
|
||||||
|
{
|
||||||
|
var skinnable = (SkinnableDrawable)child;
|
||||||
skinnable.LifetimeEnd = skinnable.Drawable.LifetimeEnd;
|
skinnable.LifetimeEnd = skinnable.Drawable.LifetimeEnd;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user