From 64cb04a179de6bdf535a2fb07566c2c5427536cb Mon Sep 17 00:00:00 2001 From: andy840119 Date: Thu, 7 Oct 2021 00:39:58 +0900 Subject: [PATCH] add draggable circle at the front of content. --- .../Visual/BackgroundGridTestSample.cs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/osu.Framework.Font.Tests/Visual/BackgroundGridTestSample.cs b/osu.Framework.Font.Tests/Visual/BackgroundGridTestSample.cs index a66d320..4627fcb 100644 --- a/osu.Framework.Font.Tests/Visual/BackgroundGridTestSample.cs +++ b/osu.Framework.Font.Tests/Visual/BackgroundGridTestSample.cs @@ -25,7 +25,9 @@ public abstract class BackgroundGridTestSample : TestScene [Resolved] private ShaderManager shaderManager { get; set; } - protected override Container Content { get; } = new Container { RelativeSizeAxes = Axes.Both }; + private readonly Container content; + + protected override Container Content => content; protected BackgroundGridTestSample() { @@ -58,7 +60,18 @@ protected BackgroundGridTestSample() Origin = Anchor.Centre, Colour = Color4.Purple, }, - Content, + content = new Container + { + RelativeSizeAxes = Axes.Both, + }, + new DraggableCircle + { + Name = "Test background change object", + Size = new Vector2(GRID_SIZE), + Anchor = Anchor.BottomRight, + Origin = Anchor.BottomRight, + Colour = Color4.Green, + }, } }); }