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:
Bashy 2026-11-21 14:34:41 +02:00
parent b5a81bdb15
commit 4fda6060bf
16 changed files with 228 additions and 28 deletions

View file

@ -2,16 +2,17 @@
The box sits under the webcam (Game scene: camera group at 1920,600, 640x360 on the 2560 canvas
= 1440,450 480x270 on this 1920x1080 page). Newest message on top, slides out from under the camera,
older ones are pushed down and dissolve at the bottom edge.
Move or resize it with Custom CSS in Settings, e.g. #chat { --chat-top: 60%; --chat-height: 37%; } */
Per browser source: ?chat=left,top,width,height (px of the 1920x1080 page) and ?chatflow=up (newest at the bottom),
e.g. the Intermission panel: ?parts=chat&chat=130,640,700,360&chatflow=up. Default (no ?chat): under the camera, flowing down. */
#chat {
--chat-right: 2%;
--chat-left: 78%;
--chat-top: 63%; /* 680px: just above the bottom of the camera ring, so messages come out from under it */
--chat-width: 20%;
--chat-height: 34%; /* down to the bottom edge */
--ink: #3a2a20;
--cream: #fffdf7;
position: fixed;
right: var(--chat-right);
left: var(--chat-left);
top: var(--chat-top);
width: var(--chat-width);
height: var(--chat-height);
@ -25,6 +26,16 @@
mask-image: linear-gradient(transparent 0, #000 30px, #000 calc(100% - 60px), transparent);
}
/* up: like a normal chat, newest at the bottom, the oldest fade out at the top */
#chat.up {
justify-content: flex-end;
padding: 14px 8px 8px;
-webkit-mask-image: linear-gradient(transparent 0, #000 50px);
mask-image: linear-gradient(transparent 0, #000 50px);
}
#chat.up .msg.in { animation-name: chat-in-up; }
@keyframes chat-in-up { from { opacity: 0; transform: translateY(24px) rotate(calc(var(--tilt, 0deg) * -3)) scale(.95); } }
#chat .msg {
position: relative;
flex: none;