Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make beatmap overlay download buttons work #1506

Merged
merged 6 commits into from Nov 23, 2017

Conversation

naoey
Copy link
Contributor

@naoey naoey commented Nov 15, 2017

  • Add noVideo option to DownloadBeatmapSetRequest
  • Make Download fire an event with new download instead of returning it

- Add noVideo option to DownloadBeatmapSetRequest
- Make Download fire an event with new download instead of returning it
@naoey naoey changed the title Hook up download logic with BeatmapSetOverlay download buttons. Make beatmap overlay download buttons work Nov 15, 2017
@@ -109,6 +103,8 @@ private void load(APIAccess api, BeatmapManager beatmaps, OsuColour colours, Not

if (downloadRequest != null)
attachDownload(downloadRequest);

beatmaps.BeatmapDownloadBegan += attachDownload;

This comment was marked as off-topic.

{
this.api = api;
this.rulesets = rulesets;

manager.BeatmapSetAdded += beatmap =>

This comment was marked as off-topic.

This comment was marked as off-topic.

- Also unbind event handlers
- Remove unused field
@peppy peppy added this to the November 2017 milestone Nov 21, 2017
private void handleBeatmapAdd(BeatmapSetInfo beatmap)
{
if (beatmap.OnlineBeatmapSetID == BeatmapSet.OnlineBeatmapSetID)
downloadButtonsContainer.FadeOut(transition_duration);

This comment was marked as off-topic.

@peppy
Copy link
Sponsor Member

peppy commented Nov 23, 2017

Going to merge this even though the full behaviour I mentioned in my comments isn't yet implemented. @naoey pointed out on discord that he did try to add this and didn't have much luck, so let's leave that for a future PR.

@peppy peppy merged commit b0b3c91 into ppy:master Nov 23, 2017
@naoey naoey deleted the beatmap-overlay-download branch November 24, 2017 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants