1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-01 00:12:56 +08:00

Rename {Play -> GoToBeatmap}Button

This commit is contained in:
Bartłomiej Dach 2021-11-20 18:36:39 +01:00
parent 6e5918a100
commit b3606f4a21
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
2 changed files with 3 additions and 4 deletions

View File

@ -25,7 +25,6 @@ using osu.Game.Overlays.BeatmapListing.Panels;
using osu.Game.Resources.Localisation.Web; using osu.Game.Resources.Localisation.Web;
using osuTK.Graphics; using osuTK.Graphics;
using DownloadButton = osu.Game.Beatmaps.Drawables.Cards.Buttons.DownloadButton; using DownloadButton = osu.Game.Beatmaps.Drawables.Cards.Buttons.DownloadButton;
using PlayButton = osu.Game.Beatmaps.Drawables.Cards.Buttons.PlayButton;
namespace osu.Game.Beatmaps.Drawables.Cards namespace osu.Game.Beatmaps.Drawables.Cards
{ {
@ -144,7 +143,7 @@ namespace osu.Game.Beatmaps.Drawables.Cards
Anchor = Anchor.BottomCentre, Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre Origin = Anchor.BottomCentre
}, },
new PlayButton(beatmapSet) new GoToBeatmapButton(beatmapSet)
{ {
Anchor = Anchor.BottomCentre, Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre Origin = Anchor.BottomCentre

View File

@ -12,12 +12,12 @@ using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Beatmaps.Drawables.Cards.Buttons namespace osu.Game.Beatmaps.Drawables.Cards.Buttons
{ {
public class PlayButton : BeatmapCardIconButton public class GoToBeatmapButton : BeatmapCardIconButton
{ {
private readonly APIBeatmapSet beatmapSet; private readonly APIBeatmapSet beatmapSet;
private readonly Bindable<DownloadState> downloadState = new Bindable<DownloadState>(); private readonly Bindable<DownloadState> downloadState = new Bindable<DownloadState>();
public PlayButton(APIBeatmapSet beatmapSet) public GoToBeatmapButton(APIBeatmapSet beatmapSet)
{ {
this.beatmapSet = beatmapSet; this.beatmapSet = beatmapSet;