diff --git a/README.md b/README.md index f824964..3cd7fb3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Beat Saber Overlay -Simple Beat Saber stream overlay for [twitch.tv/iza_k](https://www.twitch.tv/iza_k) - +Simple Beat Saber stream overlay for [twitch.tv/iza_k](https://www.twitch.tv/iza_k) Requires [BeatSaberPlus](https://github.com/hardcpp/BeatSaberPlus) ### Preview @@ -11,7 +10,7 @@ Requires [BeatSaberPlus](https://github.com/hardcpp/BeatSaberPlus) ## Usage 1. Go to [bs-overlay.netlify.app](https://bs-overlay.netlify.app/) -2. Click anywhere on page to show settings +2. Click anywhere on page to show settings (saved in URL) ![](images/screenshots/settings.png) 3. Copy URL 4. OBS Studio: Add Source > Browser > paste URL diff --git a/index.js b/index.js index 23383f8..0510d78 100644 --- a/index.js +++ b/index.js @@ -82,7 +82,7 @@ const bsrKey = document.getElementById("bsrKey"); let timeMultiplier = 1; let duration = 0; -/** @param {MapInfoChanged} data */ +/** @param {MapInfo} data */ async function updateMapInfo(data) { const custom = data.level_id.startsWith("custom_level_"); const wip = custom && data.level_id.endsWith("WIP"); diff --git a/types.d.ts b/types.d.ts index e22f0a4..6ea3674 100644 --- a/types.d.ts +++ b/types.d.ts @@ -61,7 +61,7 @@ interface ScoreEvent { } type BeatSaberPlusEvent = HandshakeEvent | GameStateEvent | ResumeEvent | PauseEvent | MapInfoChangedEvent | ScoreEvent; -type MapInfoChanged = MapInfoChangedEvent["mapInfoChanged"]; +type MapInfo = MapInfoChangedEvent["mapInfoChanged"]; type Score = ScoreEvent["scoreEvent"]; interface Document {