mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Fix various test scenes not adding EditorClock
to the draw hierarchy
This commit is contained in:
@ -1,9 +1,6 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
#nullable disable
|
||||
|
||||
using JetBrains.Annotations;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
@ -19,19 +16,23 @@ namespace osu.Game.Tests.Visual
|
||||
[Cached]
|
||||
private readonly EditorClock editorClock = new EditorClock();
|
||||
|
||||
protected override Container<Drawable> Content => content ?? base.Content;
|
||||
protected override Container<Drawable> Content => content;
|
||||
private readonly Container content;
|
||||
|
||||
protected SelectionBlueprintTestScene()
|
||||
{
|
||||
base.Content.Add(content = new Container
|
||||
base.Content.AddRange(new Drawable[]
|
||||
{
|
||||
Clock = new FramedClock(new StopwatchClock()),
|
||||
RelativeSizeAxes = Axes.Both
|
||||
editorClock,
|
||||
content = new Container
|
||||
{
|
||||
Clock = new FramedClock(new StopwatchClock()),
|
||||
RelativeSizeAxes = Axes.Both
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
protected void AddBlueprint(HitObjectSelectionBlueprint blueprint, [CanBeNull] DrawableHitObject drawableObject = null)
|
||||
protected void AddBlueprint(HitObjectSelectionBlueprint blueprint, DrawableHitObject? drawableObject = null)
|
||||
{
|
||||
Add(blueprint.With(d =>
|
||||
{
|
||||
|
Reference in New Issue
Block a user