1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-16 18:06:55 +00:00
* Added: Support for custom VIP Badge images.
* Fixed: Certain emotes breaking when `Large Emotes` is combined with `Fix bad Twitch emotes`. (Closes #1020)
* Fixed: Remember the Compressor state, if it was toggled, when resetting the player. (Closes #1024)
* API Added: The `chat` module has two methods for maintaining a list of possible message highlight reasons, for use populating UI. Accessible via methods `addHighlightReason(key, data)` and `getHighlightReasons()`.
* API Added: `basic_array_merge` setting type.
* API Added: Logs now include the initial URL that the script was loaded into.
* API Changed: `<select>` settings can now support multiple selected values.
This commit is contained in:
SirStendec 2021-04-14 16:53:15 -04:00
parent ae90b8e4fe
commit a80728a10d
13 changed files with 183 additions and 28 deletions

View file

@ -1693,11 +1693,13 @@ export const TwitchEmotes = {
let src, srcSet;
let src2, srcSet2;
let can_big = true;
const replacement = REPLACEMENTS[e_id];
if ( replacement && use_replacements ) {
src = `${REPLACEMENT_BASE}${replacement}`;
srcSet = '';
can_big = false;
} else {
src = `${TWITCH_EMOTE_BASE}${e_id}/1.0`;
@ -1718,7 +1720,8 @@ export const TwitchEmotes = {
src2,
srcSet2,
big,
can_big: true,
can_big,
height: 28, // Not always accurate but close enough.
text: text.slice(e_start - t_start, e_end - t_start).join(''),
modifiers: []
});