Reward / Power-up icon as a top-left sticker on the cassette and the video box
Twitch icons of channel point rewards (custom images) and Custom Power-ups are cached (10 min, refreshed on unknown triggers, never holding an alert more than 2 s) and attached as alert.icon; cassette.js and video.js show it as a white-outlined sticker on the top-left corner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b3caac7a31
commit
8ac8fe024c
6 changed files with 63 additions and 7 deletions
|
|
@ -125,7 +125,7 @@
|
|||
case 'redeem': {
|
||||
// shown as a cassette tape (cassette.js); polaroid:false = sound only
|
||||
const fill = t => String(t || '').replace(/\{reward\}/g, e.reward || '').replace(/\{variation\}/g, e.variation || '');
|
||||
return { cassette: true, style: e.style || 'cassette', emote: e.emote || null, sticker: rebase(e.art) || null,
|
||||
return { cassette: true, style: e.style || 'cassette', emote: e.emote || null, sticker: rebase(e.art) || null, icon: e.icon || null,
|
||||
name: e.user || 'Someone', line: fill(e.caption || 'redeemed it! ♡'), msg: e.input,
|
||||
title: e.variation || e.reward, sub: e.reward, rarity: e.rarity,
|
||||
sound: e.sound || null, volume: e.volume, soundOnly: e.polaroid === false && !e.tts,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue