mirror of
https://github.com/osukey/osukey.git
synced 2025-05-06 22:27:25 +09:00
Remove mentions of "panel" and "direct" from names of old download buttons
This commit is contained in:
parent
a043d1e427
commit
05f7ea6b6d
@ -235,7 +235,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
assertDownloadButtonVisible(false);
|
assertDownloadButtonVisible(false);
|
||||||
|
|
||||||
void assertDownloadButtonVisible(bool visible) => AddUntilStep($"download button {(visible ? "shown" : "hidden")}",
|
void assertDownloadButtonVisible(bool visible) => AddUntilStep($"download button {(visible ? "shown" : "hidden")}",
|
||||||
() => playlist.ChildrenOfType<BeatmapPanelDownloadButton>().Single().Alpha == (visible ? 1 : 0));
|
() => playlist.ChildrenOfType<BeatmapDownloadButton>().Single().Alpha == (visible ? 1 : 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@ -249,7 +249,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
|
|
||||||
createPlaylist(byOnlineId, byChecksum);
|
createPlaylist(byOnlineId, byChecksum);
|
||||||
|
|
||||||
AddAssert("download buttons shown", () => playlist.ChildrenOfType<BeatmapPanelDownloadButton>().All(d => d.IsPresent));
|
AddAssert("download buttons shown", () => playlist.ChildrenOfType<BeatmapDownloadButton>().All(d => d.IsPresent));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -14,7 +14,7 @@ using osuTK;
|
|||||||
|
|
||||||
namespace osu.Game.Tests.Visual.Online
|
namespace osu.Game.Tests.Visual.Online
|
||||||
{
|
{
|
||||||
public class TestSceneDirectDownloadButton : OsuTestScene
|
public class TestSceneBeatmapDownloadButton : OsuTestScene
|
||||||
{
|
{
|
||||||
private TestDownloadButton downloadButton;
|
private TestDownloadButton downloadButton;
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
return apiBeatmapSet;
|
return apiBeatmapSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
private class TestDownloadButton : BeatmapPanelDownloadButton
|
private class TestDownloadButton : BeatmapDownloadButton
|
||||||
{
|
{
|
||||||
public new bool DownloadEnabled => base.DownloadEnabled;
|
public new bool DownloadEnabled => base.DownloadEnabled;
|
||||||
|
|
@ -15,7 +15,7 @@ using osu.Game.Online.API.Requests.Responses;
|
|||||||
|
|
||||||
namespace osu.Game.Beatmaps.Drawables
|
namespace osu.Game.Beatmaps.Drawables
|
||||||
{
|
{
|
||||||
public class BeatmapPanelDownloadButton : CompositeDrawable
|
public class BeatmapDownloadButton : CompositeDrawable
|
||||||
{
|
{
|
||||||
protected bool DownloadEnabled => button.Enabled.Value;
|
protected bool DownloadEnabled => button.Enabled.Value;
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
|
|
||||||
private readonly IBeatmapSetInfo beatmapSet;
|
private readonly IBeatmapSetInfo beatmapSet;
|
||||||
|
|
||||||
public BeatmapPanelDownloadButton(IBeatmapSetInfo beatmapSet)
|
public BeatmapDownloadButton(IBeatmapSetInfo beatmapSet)
|
||||||
{
|
{
|
||||||
this.beatmapSet = beatmapSet;
|
this.beatmapSet = beatmapSet;
|
||||||
|
|
@ -285,7 +285,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
{
|
{
|
||||||
case DownloadState.LocallyAvailable:
|
case DownloadState.LocallyAvailable:
|
||||||
// temporary for UX until new design is implemented.
|
// temporary for UX until new design is implemented.
|
||||||
downloadButtonsContainer.Child = new BeatmapPanelDownloadButton(BeatmapSet.Value)
|
downloadButtonsContainer.Child = new BeatmapDownloadButton(BeatmapSet.Value)
|
||||||
{
|
{
|
||||||
Width = 50,
|
Width = 50,
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
|
@ -338,7 +338,7 @@ namespace osu.Game.Screens.OnlinePlay
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private sealed class PlaylistDownloadButton : BeatmapPanelDownloadButton
|
private sealed class PlaylistDownloadButton : BeatmapDownloadButton
|
||||||
{
|
{
|
||||||
private readonly PlaylistItem playlistItem;
|
private readonly PlaylistItem playlistItem;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user