mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Fix another test
This commit is contained in:
@ -14,7 +14,6 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
|
|
||||||
Add(container);
|
Add(container);
|
||||||
|
|
||||||
AddAssert("is container hidden", () => container.Alpha == 0);
|
|
||||||
AddStep("set undownloadable beatmapset", () => container.BeatmapSet = new BeatmapSetInfo
|
AddStep("set undownloadable beatmapset", () => container.BeatmapSet = new BeatmapSetInfo
|
||||||
{
|
{
|
||||||
OnlineInfo = new BeatmapSetOnlineInfo
|
OnlineInfo = new BeatmapSetOnlineInfo
|
||||||
|
@ -27,7 +27,11 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
|
|
||||||
beatmapSet = value;
|
beatmapSet = value;
|
||||||
|
|
||||||
updateText();
|
var unavailable = availability != null;
|
||||||
|
this.FadeTo(unavailable ? 1 : 0);
|
||||||
|
|
||||||
|
if (unavailable)
|
||||||
|
updateText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,9 +83,6 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
|
|
||||||
private void updateText()
|
private void updateText()
|
||||||
{
|
{
|
||||||
if (availability == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
text.Text = availability.DownloadDisabled
|
text.Text = availability.DownloadDisabled
|
||||||
? "This beatmap is currently not available for download."
|
? "This beatmap is currently not available for download."
|
||||||
: "Portions of this beatmap have been removed at the request of the creator or a third-party rights holder.";
|
: "Portions of this beatmap have been removed at the request of the creator or a third-party rights holder.";
|
||||||
|
Reference in New Issue
Block a user