mirror of
https://github.com/ppy/osu
synced 2025-01-02 20:32:10 +00:00
Rename
This commit is contained in:
parent
18d3685023
commit
03a7b8a6ef
@ -15,7 +15,7 @@ namespace osu.Game.Rulesets.Mania.Tests
|
||||
public class TestScenePlayfieldCoveringContainer : OsuTestScene
|
||||
{
|
||||
private readonly ScrollingTestContainer scrollingContainer;
|
||||
private readonly PlayfieldCoveringContainer cover;
|
||||
private readonly PlayfieldCoveringWrapper cover;
|
||||
|
||||
public TestScenePlayfieldCoveringContainer()
|
||||
{
|
||||
@ -24,7 +24,7 @@ namespace osu.Game.Rulesets.Mania.Tests
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Size = new Vector2(300, 500),
|
||||
Child = cover = new PlayfieldCoveringContainer(new Box
|
||||
Child = cover = new PlayfieldCoveringWrapper(new Box
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = Color4.Orange
|
||||
|
@ -15,6 +15,6 @@ namespace osu.Game.Rulesets.Mania.Mods
|
||||
public override IconUsage? Icon => OsuIcon.ModHidden;
|
||||
public override string Description => @"Keys appear out of nowhere!";
|
||||
|
||||
protected override PlayfieldCoveringContainer CreateCover(Drawable content) => new PlayfieldCoveringContainer(content);
|
||||
protected override PlayfieldCoveringWrapper CreateCover(Drawable content) => new PlayfieldCoveringWrapper(content);
|
||||
}
|
||||
}
|
||||
|
@ -37,11 +37,11 @@ namespace osu.Game.Rulesets.Mania.Mods
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual PlayfieldCoveringContainer CreateCover(Drawable content) => new ModHiddenCoveringContainer(content);
|
||||
protected virtual PlayfieldCoveringWrapper CreateCover(Drawable content) => new ModHiddenCoveringWrapper(content);
|
||||
|
||||
private class ModHiddenCoveringContainer : PlayfieldCoveringContainer
|
||||
private class ModHiddenCoveringWrapper : PlayfieldCoveringWrapper
|
||||
{
|
||||
public ModHiddenCoveringContainer(Drawable content)
|
||||
public ModHiddenCoveringWrapper(Drawable content)
|
||||
: base(content)
|
||||
{
|
||||
// This cover extends outwards from the hit position.
|
||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
/// <remarks>
|
||||
/// The covered area extends in the scrolling direction, with its size depending on <see cref="Coverage"/>.
|
||||
/// </remarks>
|
||||
public class PlayfieldCoveringContainer : CompositeDrawable
|
||||
public class PlayfieldCoveringWrapper : CompositeDrawable
|
||||
{
|
||||
/// <summary>
|
||||
/// The complete cover, including gradient and fill.
|
||||
@ -38,7 +38,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
|
||||
private readonly IBindable<ScrollingDirection> scrollDirection = new Bindable<ScrollingDirection>();
|
||||
|
||||
public PlayfieldCoveringContainer(Drawable content)
|
||||
public PlayfieldCoveringWrapper(Drawable content)
|
||||
{
|
||||
InternalChild = new BufferedContainer
|
||||
{
|
Loading…
Reference in New Issue
Block a user