1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00
* Added: Emote cards are now at parity with vanilla Twitch emote cards when it comes to displaying Twitch emotes, including the ability to follow/subscribe to the source channel, view their other emotes, and report emotes.
* Added: Emote cards for FFZ emotes now allow you to add an emote to any collection you can manage.
* Added: Emote cards for other emotes now have an action to open the emote on the source service's webpage.
* Fixed: Effect emotes not appearing when used incorrectly in chat.
* Fixed: Rebuild the tab-completion emote array in a way more likely to cause Twitch's native input element to update when we change our emotes.
* Changed: Use a higher contrast "New" pill when displaying new items in the FFZ Control Center. (Closes #1348)
* Changed: Push the modular chat line rendering experiment to 100% roll-out.
This commit is contained in:
SirStendec 2023-03-30 14:54:33 -04:00
parent 53814e7024
commit 880e80388a
25 changed files with 1382 additions and 54 deletions

View file

@ -933,7 +933,7 @@ export default class Emotes extends Module {
else if ( ! value && idx !== -1 )
favorites.splice(idx, 1);
else
return;
return value;
if ( favorites.length )
p.set(key, favorites);
@ -941,6 +941,7 @@ export default class Emotes extends Module {
p.delete(key);
this.emit(':change-favorite', source, id, value);
return value;
}
isFavorite(source, id) {
@ -1075,11 +1076,21 @@ export default class Emotes extends Module {
if ( favorite_only )
return false;
let modifiers;
try {
modifiers = JSON.parse(ds.modifierInfo);
} catch(err) {
/* no-op */
}
const evt = new FFZEvent({
provider,
id: ds.id,
set: ds.set,
code: ds.code,
variant: ds.variant,
name: ds.name || target.alt,
modifiers,
source: event
});
@ -1680,7 +1691,7 @@ export default class Emotes extends Module {
animSrc2: emote.animSrc2,
animSrcSet2: emote.animSrcSet2,
masked: !! emote.mask,
hidden: (emote.modifier_flags & 1) === 1,
mod_hidden: (emote.modifier_flags & 1) === 1,
text: emote.hidden ? '???' : emote.name,
length: emote.name.length,
height: emote.height,