mirror of
https://github.com/got-feedBack/feedBack.git
synced 2026-08-10 18:59:56 +00:00
fix(highway): user-selectable scoreboard to stop duplicate HUDs
The highway showed two overlapping note-detection scoreboards at once: the core v3 live-performance HUD (#v3-live-performance-hud) and the note_detect plugin's own HUD (.nd-hud). Both auto-render off the same note:hit/note:miss events and neither suppressed the other. Add a Settings → Visualization "Scoreboard" selector (Streak / Detailed / Off, default Streak) backed by a single source of truth on <html data-scoreboard>. CSS shows exactly one: core (default) → core HUD; hide .nd-hud detailed → .nd-hud; hide the core HUD off → hide both CSS-based suppression keys the default off ":not(detailed):not(off)", so the correct HUD is right even before the pref script runs (no flash) and it robustly hides any .nd-hud regardless of how many note_detect instances load. Detection itself is untouched — only the duplicate scoreboard panel is hidden. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
a7a93e9bef
commit
36aeea67ac
@@ -313,6 +313,19 @@
|
||||
transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
|
||||
}
|
||||
.v3-live-performance-hud.hidden { display: none; }
|
||||
|
||||
/* Highway scoreboard preference (static/v3/scoreboard-pref.js).
|
||||
One note-detection scoreboard at a time on the highway:
|
||||
core (default) → core live-performance HUD; hide the note_detect plugin HUD
|
||||
detailed → note_detect .nd-hud; hide the core HUD
|
||||
off → hide both
|
||||
The default rule keys off "not detailed and not off" so it's correct even
|
||||
before the pref script sets data-scoreboard (avoids a flash of both). */
|
||||
html:not([data-scoreboard="detailed"]):not([data-scoreboard="off"]) .nd-hud { display: none !important; }
|
||||
html[data-scoreboard="detailed"] #v3-live-performance-hud { display: none !important; }
|
||||
html[data-scoreboard="off"] .nd-hud,
|
||||
html[data-scoreboard="off"] #v3-live-performance-hud { display: none !important; }
|
||||
|
||||
.v3-live-performance-heading {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
|
||||
Reference in New Issue
Block a user