Skip to content

Commit

Permalink
add draggable circle at the front of content.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Oct 6, 2021
1 parent 379aa52 commit 64cb04a
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions osu.Framework.Font.Tests/Visual/BackgroundGridTestSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public abstract class BackgroundGridTestSample : TestScene
[Resolved]
private ShaderManager shaderManager { get; set; }

protected override Container<Drawable> Content { get; } = new Container { RelativeSizeAxes = Axes.Both };
private readonly Container content;

protected override Container<Drawable> Content => content;

protected BackgroundGridTestSample()
{
Expand Down Expand Up @@ -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,
},
}
});
}
Expand Down

0 comments on commit 64cb04a

Please sign in to comment.