From c0c01e978a7dec399548df164c4655d48458afbd Mon Sep 17 00:00:00 2001 From: Isaiah Billingsley Date: Fri, 6 Mar 2026 21:58:30 -0500 Subject: [PATCH] Update readme, types --- README.md | 5 ++--- index.js | 2 +- types.d.ts | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) 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 {