-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #2 from rithik-b/dev/sira
SiraUtil 3 Migration
- Loading branch information
Showing
10 changed files
with
132 additions
and
112 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,44 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- 'TakeMeToResults.sln' | ||
- 'TakeMeToResults/**' | ||
- '.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: Download SIRA References | ||
uses: ProjectSIRA/download-sira-stripped@1.0.0 | ||
with: | ||
manifest: ${{github.workspace}}/TakeMeToResults/manifest.json | ||
sira-server-code: ${{ secrets.SIRA_SERVER_CODE }} | ||
- name: Download Mod Dependencies | ||
uses: Goobwabber/download-beatmods-deps@1.2 | ||
with: | ||
manifest: ${{github.workspace}}/TakeMeToResults/manifest.json | ||
- 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: "TakeMeToResults" | ||
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,42 @@ | ||
name: PR Build | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- 'TakeMeToResults/**' | ||
- '.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: Download SIRA References | ||
uses: ProjectSIRA/download-sira-stripped@1.0.0 | ||
with: | ||
manifest: ${{github.workspace}}/TakeMeToResults/manifest.json | ||
sira-server-code: ${{ secrets.SIRA_SERVER_CODE }} | ||
- name: Download Mod Dependencies | ||
uses: Goobwabber/download-beatmods-deps@1.2 | ||
with: | ||
manifest: ${{github.workspace}}/TakeMeToResults/manifest.json | ||
- 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: "TakeMeToResults" | ||
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
17 changes: 17 additions & 0 deletions
17
TakeMeToResults/AffinityPatches/PresentFlowCoordinatorPatch.cs
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,17 @@ | ||
using HMUI; | ||
using SiraUtil.Affinity; | ||
using System; | ||
|
||
namespace TakeMeToResults.AffinityPatches | ||
{ | ||
internal class PresentFlowCoordinatorPatch : IAffinity | ||
{ | ||
public event Action FlowCoordinatorChanged; | ||
|
||
[AffinityPatch(typeof(FlowCoordinator), "PresentFlowCoordinator")] | ||
private void PresentFlowCoordinator() | ||
{ | ||
FlowCoordinatorChanged?.Invoke(); | ||
} | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
TakeMeToResults/HarmonyPatches/FlowCoordinator_PresentFlowCoordinator.cs
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
TakeMeToResults/Installers/TakeMeToResultsMenuInstaller.cs
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,14 +1,18 @@ | ||
{ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/bsmg/BSIPA-MetadataFileSchema/master/Schema.json", | ||
"id": "TakeMeToResults", | ||
"name": "TakeMeToResults", | ||
"author": "PixelBoom", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "A simple mod that adds a button which takes you to the results screen.", | ||
"gameVersion": "1.16.1", | ||
"gameVersion": "1.19.0", | ||
"dependsOn": { | ||
"BSIPA": "^4.1.6", | ||
"BeatSaberMarkupLanguage": "^1.5.3", | ||
"SiraUtil": "^2.5.5" | ||
} | ||
"BSIPA": "^4.2.1", | ||
"BeatSaberMarkupLanguage": "^1.6.0", | ||
"SiraUtil": "^3.0.0" | ||
}, | ||
"links": { | ||
"project-source": "https://github.com/rithik-b/TakeMeToResults", | ||
"donate": "https://ko-fi.com/pixelboom" | ||
} | ||
} |