1
0
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:
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", () => 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 },
};
}); });
}); });
} }

View File

@ -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;
}
} }
} }