TTS redeems, skip button, per-source chat placement
- Redeem variations can have a TTS voice: the viewer's text is cleaned (links out, repeats collapsed, max length, blocked words -> not read), spoken as "<name> says: ..." and shown as the big paper note; the variation's sound is not played when TTS is on (picker greyed out) - Settings: TTS max length, say-the-name, blocked words (never sent to overlay pages: db.getOverlaySettings) - Dashboard "Skip current alert" -> /alerts/skip -> overlay skips it - db.migrate()/addColumn: new columns on existing databases - Chat: ?chat=left,top,width,height and ?chatflow=up per browser source (e.g. the Intermission panel); default unchanged Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b5a81bdb15
commit
4fda6060bf
16 changed files with 228 additions and 28 deletions
|
|
@ -67,7 +67,7 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<% if (has('chat')) { %><div id="chat"></div><% } %>
|
||||
<% if (has('chat')) { %><div id="chat" class="<%= chatFlow %>"<% if (chatBox) { %> style="--chat-left:<%= chatBox.left %>px; --chat-top:<%= chatBox.top %>px; --chat-width:<%= chatBox.width %>px; --chat-height:<%= chatBox.height %>px;"<% } %>></div><% } %>
|
||||
<% if (has('alerts')) { %><div id="alert-box"></div>
|
||||
<video id="alert-video" autoplay></video><% } %>
|
||||
|
||||
|
|
@ -161,6 +161,7 @@
|
|||
// NOWPLAYING: if (msg.type === 'nowplaying') { if (PARTS.has('nowplaying')) NowPlaying.update(msg.np); return; }
|
||||
if (msg.type === 'nowplaying') return;
|
||||
if (msg.type === 'raid_card') { if (PARTS.has('raid')) RaidCard.update(msg.phase, msg.raid); return; }
|
||||
if (msg.type === 'alert_skip') { if (PARTS.has('alerts')) PolaroidAlerts.skip(); return; }
|
||||
if (!PARTS.has('alerts')) return; // alerts and legacy actions below
|
||||
if (msg.type === 'alert') {
|
||||
// test buttons: replace other test alerts at once, but never cut off a real alert
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue