Rename class to BeatmapAvailability

This commit is contained in:
Dean Herbert 2019-06-27 11:40:22 +09:00
parent 9ada4d68b1
commit 322d92d3e0
5 changed files with 12 additions and 11 deletions

View File

@ -8,13 +8,13 @@ using osu.Game.Overlays.BeatmapSet;
namespace osu.Game.Tests.Visual.Online
{
[TestFixture]
public class TestSceneBeatmapNotAvailable : OsuTestScene
public class TestSceneBeatmapAvailability : OsuTestScene
{
private readonly BeatmapNotAvailable container;
private readonly BeatmapAvailability container;
public TestSceneBeatmapNotAvailable()
public TestSceneBeatmapAvailability()
{
Add(container = new BeatmapNotAvailable());
Add(container = new BeatmapAvailability());
}
[Test]

View File

@ -1,4 +1,4 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// 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.
using NUnit.Framework;
@ -39,7 +39,7 @@ namespace osu.Game.Tests.Visual.Online
typeof(Info),
typeof(PreviewButton),
typeof(SuccessRate),
typeof(BeatmapNotAvailable),
typeof(BeatmapAvailability),
};
private RulesetInfo taikoRuleset;

View File

@ -18,6 +18,7 @@ namespace osu.Game.Online.Chat
/// <summary>
/// Manages everything channel related
/// </summary>
[Cached]
public class ChannelManager : PollingComponent
{
/// <summary>

View File

@ -12,7 +12,7 @@ using osuTK.Graphics;
namespace osu.Game.Overlays.BeatmapSet
{
public class BeatmapNotAvailable : Container
public class BeatmapAvailability : Container
{
private BeatmapSetInfo beatmapSet;
@ -43,7 +43,7 @@ namespace osu.Game.Overlays.BeatmapSet
private readonly TextFlowContainer textContainer;
private readonly LinkFlowContainer linkContainer;
public BeatmapNotAvailable()
public BeatmapAvailability()
{
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;

View File

@ -31,7 +31,7 @@ namespace osu.Game.Overlays.BeatmapSet
private readonly UpdateableBeatmapSetCover cover;
private readonly OsuSpriteText title, artist;
private readonly AuthorInfo author;
private readonly BeatmapNotAvailable beatmapNotAvailable;
private readonly BeatmapAvailability beatmapAvailability;
private readonly BeatmapSetOnlineStatusPill onlineStatusPill;
public Details Details;
@ -150,7 +150,7 @@ namespace osu.Game.Overlays.BeatmapSet
Margin = new MarginPadding { Top = 20 },
Child = author = new AuthorInfo(),
},
beatmapNotAvailable = new BeatmapNotAvailable(),
beatmapAvailability = new BeatmapAvailability(),
new Container
{
RelativeSizeAxes = Axes.X,
@ -216,7 +216,7 @@ namespace osu.Game.Overlays.BeatmapSet
BeatmapSet.BindValueChanged(setInfo =>
{
Picker.BeatmapSet = author.BeatmapSet = beatmapNotAvailable.BeatmapSet = Details.BeatmapSet = setInfo.NewValue;
Picker.BeatmapSet = author.BeatmapSet = beatmapAvailability.BeatmapSet = Details.BeatmapSet = setInfo.NewValue;
cover.BeatmapSet = setInfo.NewValue;
if (setInfo.NewValue == null)