Add redeem sounds and cut-out stickers

- public/alerts/sounds/redeems/: every channel point / Power-up / highlight clip,
  two-pass loudness-normalized to -16 LUFS (peaks <= -1.5 dBFS), so all redeems
  play at the same volume with the default 0.8. Originals stay in Nextcloud.
- public/alerts/sounds/: remaining library clips (a-rat, emotional damage for
  tips, okay-meme, ...) at their original level, next to the built-in alert sounds.
- public/alerts/stickers/: per-redeem cassette stickers, cut out with rembg or
  hand-drawn masks (soft fade where a photo edge cut the subject), plus a drawn
  chat bubble and the default headset Streamer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bashy 2026-11-20 23:18:15 +02:00
parent d481fc4f69
commit 8c649c5bce
3 changed files with 0 additions and 197 deletions

View file

@ -1,73 +0,0 @@
<h2>Layout editor</h2>
<div style="position:relative; width:100%; padding-bottom:56.25%; border:1px solid #333; border-radius:8px; overflow:hidden; margin-bottom:1.5rem;">
<iframe
id="preview"
src="/overlay/<%= settings.overlay_id %>/preview"
style="position:absolute; top:0; left:0; width:1920px; height:1080px; border:none; transform-origin:top left;"
scrolling="no"
></iframe>
</div>
<form method="POST" action="/layout">
<h3>Chat position &amp; size</h3>
<div style="display:grid; grid-template-columns:repeat(4,1fr); gap:1rem;">
<label>Left (%) <input type="number" name="chat_left" id="chat_left" value="<%= overlayLayout.chat_left %>" min="0" max="95" step="0.5"></label>
<label>Top (%) <input type="number" name="chat_top" id="chat_top" value="<%= overlayLayout.chat_top %>" min="0" max="95" step="0.5"></label>
<label>Width (%) <input type="number" name="chat_width" value="<%= overlayLayout.chat_width %>" min="1" max="100" step="0.5"></label>
<label>Height (%) <input type="number" name="chat_height" value="<%= overlayLayout.chat_height %>" min="1" max="100" step="0.5"></label>
</div>
<h3>Chat style</h3>
<div style="display:grid; grid-template-columns:repeat(3,1fr); gap:1rem;">
<label>Font size (px) <input type="number" name="chat_font_size" value="<%= overlayLayout.chat_font_size %>" min="8" max="64"></label>
<label>Font family <input type="text" name="chat_font_family" value="<%= overlayLayout.chat_font_family %>"></label>
<label>Text colour <input type="color" name="chat_text_color" value="<%= overlayLayout.chat_text_color %>"></label>
<label>Background opacity (0–1) <input type="number" name="chat_bg_opacity" value="<%= overlayLayout.chat_bg_opacity %>" min="0" max="1" step="0.05"></label>
<label>Border radius (px) <input type="number" name="chat_border_radius" value="<%= overlayLayout.chat_border_radius %>" min="0" max="32"></label>
</div>
<h3>Alert position</h3>
<div style="display:grid; grid-template-columns:repeat(2,1fr); gap:1rem;">
<label>Left (%) <input type="number" name="alert_left" id="alert_left" value="<%= overlayLayout.alert_left %>" min="0" max="100" step="0.5"></label>
<label>Top (%) <input type="number" name="alert_top" id="alert_top" value="<%= overlayLayout.alert_top %>" min="0" max="100" step="0.5"></label>
</div>
<h3>Alert style</h3>
<div style="display:grid; grid-template-columns:repeat(3,1fr); gap:1rem;">
<label>Font size (px) <input type="number" name="alert_font_size" value="<%= overlayLayout.alert_font_size %>" min="12" max="96"></label>
<label>Text colour <input type="color" name="alert_text_color" value="<%= overlayLayout.alert_text_color %>"></label>
<label>Background opacity (0–1) <input type="number" name="alert_bg_opacity" value="<%= overlayLayout.alert_bg_opacity %>" min="0" max="1" step="0.05"></label>
</div>
<button type="submit" style="margin-top:1rem;">Save layout</button>
</form>
<script>
const iframe = document.getElementById('preview');
function applyScale() {
const scale = iframe.parentElement.offsetWidth / 1920;
iframe.style.transform = `scale(${scale})`;
}
applyScale();
window.addEventListener('resize', applyScale);
// Live-update CSS variables in the preview iframe as inputs change
const varMap = {
chat_left: '--chat-left',
chat_top: '--chat-top',
alert_left: '--alert-left',
alert_top: '--alert-top',
};
Object.entries(varMap).forEach(([id, cssVar]) => {
const input = document.getElementById(id);
if (!input) return;
input.addEventListener('input', () => {
if (!iframe.contentDocument) return;
iframe.contentDocument.documentElement.style.setProperty(cssVar, `${input.value}%`);
});
});
</script>

View file

@ -1,87 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
:root {
--chat-left: <%= overlayLayout.chat_left %>%;
--chat-top: <%= overlayLayout.chat_top %>%;
--chat-width: <%= overlayLayout.chat_width %>%;
--chat-height: <%= overlayLayout.chat_height %>%;
--chat-font-size: <%= overlayLayout.chat_font_size %>px;
--chat-font-family: <%= overlayLayout.chat_font_family %>;
--chat-bg-opacity: <%= overlayLayout.chat_bg_opacity %>;
--chat-text-color: <%= overlayLayout.chat_text_color %>;
--chat-border-radius: <%= overlayLayout.chat_border_radius %>px;
--alert-left: <%= overlayLayout.alert_left %>%;
--alert-top: <%= overlayLayout.alert_top %>%;
--alert-font-size: <%= overlayLayout.alert_font_size %>px;
--alert-bg-opacity: <%= overlayLayout.alert_bg_opacity %>;
--alert-text-color: <%= overlayLayout.alert_text_color %>;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: rgba(30,30,30,0.6); overflow: hidden; width: 1920px; height: 1080px; }
#chat {
position: fixed;
left: var(--chat-left);
top: var(--chat-top);
width: var(--chat-width);
max-height: var(--chat-height);
overflow: hidden;
display: flex;
flex-direction: column;
gap: 4px;
font-family: var(--chat-font-family);
font-size: var(--chat-font-size);
color: var(--chat-text-color);
}
.chat-msg {
background: rgba(0, 0, 0, var(--chat-bg-opacity));
border-radius: var(--chat-border-radius);
padding: 5px 10px;
word-break: break-word;
}
.chat-msg .username { font-weight: 700; margin-right: 4px; }
#alert-box {
position: fixed;
left: var(--alert-left);
top: var(--alert-top);
transform: translate(-50%, -50%);
font-family: var(--chat-font-family);
font-size: var(--alert-font-size);
color: var(--alert-text-color);
background: rgba(0, 0, 0, var(--alert-bg-opacity));
border-radius: 12px;
padding: 16px 28px;
text-align: center;
}
#chat-handle, #alert-handle {
position: fixed;
border: 2px dashed rgba(255,255,255,0.5);
cursor: move;
background: rgba(255,255,255,0.05);
}
#chat-handle {
left: var(--chat-left); top: var(--chat-top);
width: var(--chat-width); height: var(--chat-height);
}
#alert-handle {
left: calc(var(--alert-left) - 80px); top: calc(var(--alert-top) - 20px);
width: 160px; height: 40px;
}
</style>
</head>
<body>
<div id="chat">
<div class="chat-msg"><span class="username" style="color:#9146ff">channel</span>: This is a preview message</div>
<div class="chat-msg"><span class="username" style="color:#ff6b6b">someviewer</span>: Looking great!</div>
<div class="chat-msg"><span class="username" style="color:#6bcbff">anotheruser</span>: pog pog pog</div>
</div>
<div id="alert-box">Alert preview</div>
<div id="chat-handle" data-widget="chat"></div>
<div id="alert-handle" data-widget="alert"></div>
</body>
</html>