1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

DownloadAllowed -> DownloadEnabled

This commit is contained in:
smoogipoo 2019-06-27 13:38:21 +09:00
parent c1277b5db2
commit 9e2e393ab7
2 changed files with 4 additions and 5 deletions

View File

@ -6,10 +6,9 @@ using System.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Game.Beatmaps;
using osu.Game.Rulesets;
using osu.Game.Overlays.Direct;
using osu.Game.Rulesets.Osu;
using osuTK;
using DownloadButton = osu.Game.Overlays.Direct.DownloadButton;
namespace osu.Game.Tests.Visual.Online
{
@ -38,7 +37,7 @@ namespace osu.Game.Tests.Visual.Online
private void assertEnabled(bool enabled)
{
AddAssert($"button {(enabled ? "enabled" : "disabled")}", () => downloadButton.DownloadAllowed == enabled);
AddAssert($"button {(enabled ? "enabled" : "disabled")}", () => downloadButton.DownloadEnabled == enabled);
}
private void createButton(bool downloadable)
@ -84,7 +83,7 @@ namespace osu.Game.Tests.Visual.Online
private class TestDownloadButton : DownloadButton
{
public new bool DownloadAllowed => base.DownloadAllowed;
public new bool DownloadEnabled => base.DownloadEnabled;
public TestDownloadButton(BeatmapSetInfo beatmapSet, bool noVideo = false)
: base(beatmapSet, noVideo)

View File

@ -16,7 +16,7 @@ namespace osu.Game.Overlays.Direct
{
public class DownloadButton : BeatmapDownloadTrackingComposite
{
protected bool DownloadAllowed => button.Enabled.Value;
protected bool DownloadEnabled => button.Enabled.Value;
private readonly bool noVideo;
private readonly SpriteIcon icon;