mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Make button protected
This commit is contained in:
@ -25,14 +25,14 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
||||
|
||||
private OverlayScrollContainer scroll;
|
||||
private TestScrollContainer scroll;
|
||||
|
||||
private int invocationCount;
|
||||
|
||||
[SetUp]
|
||||
public void SetUp() => Schedule(() =>
|
||||
{
|
||||
Child = scroll = new OverlayScrollContainer
|
||||
Child = scroll = new TestScrollContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Child = new Container
|
||||
@ -104,5 +104,10 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
|
||||
AddAssert("invocation count is 1", () => invocationCount == 1);
|
||||
}
|
||||
|
||||
private class TestScrollContainer : OverlayScrollContainer
|
||||
{
|
||||
public new ScrollToTopButton Button => base.Button;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user