Update readme, types

This commit is contained in:
Isaiah Billingsley 2026-03-06 21:58:30 -05:00
parent 58c03592fd
commit c0c01e978a
3 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,6 @@
# Beat Saber Overlay
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

View File

@ -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");

2
types.d.ts vendored
View File

@ -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 {