-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from rithik-b/dev
Bugfixes, Key Download and Readonly
- Loading branch information
Showing
23 changed files
with
508 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- 'PlaylistManager.sln' | ||
- 'PlaylistManager/**' | ||
- '.github/workflows/master.yml' | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.x | ||
- name: GetStrippedRefs | ||
env: | ||
FILES_URL: ${{ secrets.BSFILES_URL }} | ||
run: wget --no-check-certificate "$FILES_URL" -q -O bsfiles.zip | ||
- name: ExtractRefs | ||
run: unzip -q -n bsfiles.zip -d ${{github.workspace}}/Refs | ||
- name: Download Mod Dependencies | ||
uses: Goobwabber/[email protected] | ||
with: | ||
manifest: ${{github.workspace}}/PlaylistManager/manifest.json | ||
- name: Download Playlists Lib | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: BuildMaster.yml | ||
workflow_conclusion: success | ||
name: BeatSaberPlaylistsLib_BS | ||
repo: rithik-b/BeatSaberPlaylistsLib | ||
path: ${{github.workspace}}/Refs | ||
- name: Build | ||
id: Build | ||
run: dotnet build --configuration Release | ||
- name: GitStatus | ||
run: git status | ||
- name: Echo Filename | ||
run: echo $BUILDTEXT \($ASSEMBLYNAME\) | ||
env: | ||
BUILDTEXT: Filename=${{ steps.Build.outputs.filename }} | ||
ASSEMBLYNAME: AssemblyName=${{ steps.Build.outputs.assemblyname }} | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ steps.Build.outputs.filename }} | ||
path: ${{ steps.Build.outputs.artifactpath }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: PR Build | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- 'PlaylistManager/**' | ||
- '.github/workflows/**.yml' | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.x | ||
- name: GetStrippedRefs | ||
env: | ||
FILES_URL: ${{ secrets.BSFILES_URL }} | ||
run: wget --no-check-certificate "$FILES_URL" -q -O bsfiles.zip | ||
- name: ExtractRefs | ||
run: unzip -q -n bsfiles.zip -d ${{github.workspace}}/Refs | ||
- name: Download Mod Dependencies | ||
uses: Goobwabber/[email protected] | ||
with: | ||
manifest: ${{github.workspace}}/PlaylistManager/manifest.json | ||
- name: Download Playlists Lib | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: BuildMaster.yml | ||
workflow_conclusion: success | ||
name: BeatSaberPlaylistsLib_BS | ||
repo: rithik-b/BeatSaberPlaylistsLib | ||
path: ${{github.workspace}}/Refs | ||
- name: Build | ||
id: Build | ||
run: dotnet build --configuration Release | ||
- name: GitStatus | ||
run: git status | ||
- name: Echo Filename | ||
run: echo $BUILDTEXT \($ASSEMBLYNAME\) | ||
env: | ||
BUILDTEXT: Filename=${{ steps.Build.outputs.filename }} | ||
ASSEMBLYNAME: AssemblyName=${{ steps.Build.outputs.assemblyname }} | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ steps.Build.outputs.filename }} | ||
path: ${{ steps.Build.outputs.artifactpath }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using BeatSaberPlaylistsLib.Types; | ||
using IPA.Utilities; | ||
using PlaylistManager.Interfaces; | ||
using System; | ||
|
||
namespace PlaylistManager.UI | ||
{ | ||
internal class CoverImageUpdater : ILevelCollectionUpdater | ||
{ | ||
private readonly LevelPackDetailViewController levelPackDetailViewController; | ||
private LevelCollectionNavigationController levelCollectionNavigationController; | ||
|
||
private Playlist selectedPlaylist; | ||
|
||
public CoverImageUpdater(LevelPackDetailViewController levelPackDetailViewController, LevelCollectionNavigationController levelCollectionNavigationController) | ||
{ | ||
this.levelPackDetailViewController = levelPackDetailViewController; | ||
this.levelCollectionNavigationController = levelCollectionNavigationController; | ||
} | ||
|
||
private void SelectedPlaylist_SpriteLoaded(object sender, EventArgs e) | ||
{ | ||
levelPackDetailViewController.SetData((IBeatmapLevelPack)selectedPlaylist); | ||
levelPackDetailViewController.ShowContent(LevelPackDetailViewController.ContentType.Owned); | ||
levelCollectionNavigationController.SetField("_levelPack", (IBeatmapLevelPack)selectedPlaylist); | ||
} | ||
|
||
public void LevelCollectionUpdated(IAnnotatedBeatmapLevelCollection annotatedBeatmapLevelCollection, BeatSaberPlaylistsLib.PlaylistManager parentManager) | ||
{ | ||
if (this.selectedPlaylist != null) | ||
{ | ||
this.selectedPlaylist.SpriteLoaded -= SelectedPlaylist_SpriteLoaded; | ||
} | ||
|
||
if (annotatedBeatmapLevelCollection is Playlist selectedPlaylist) | ||
{ | ||
this.selectedPlaylist = selectedPlaylist; | ||
selectedPlaylist.SpriteLoaded += SelectedPlaylist_SpriteLoaded; | ||
} | ||
else | ||
{ | ||
this.selectedPlaylist = null; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.