1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-11 00:20:54 +00:00
* Added: Setting to limit the size of native Twitch emotes. Enabled by default.
This commit is contained in:
SirStendec 2022-03-05 15:15:27 -05:00
parent 6a7ac8c194
commit 370a579635
4 changed files with 27 additions and 5 deletions

View file

@ -890,8 +890,13 @@ export default class ChatHook extends Module {
this.CalloutSelector.forceUpdate();
}, this);
this.chat.context.getChanges('chat.emotes.2x', val =>
this.css_tweaks.toggle('big-emoji', val > 1));
this.chat.context.getChanges('chat.emotes.2x', val => {
this.css_tweaks.toggle('big-emoji', val > 1);
this.toggleEmoteJail();
});
this.chat.context.getChanges('chat.emotes.limit-size', () =>
this.toggleEmoteJail());
this.chat.context.getChanges('chat.input.show-mod-view', val =>
this.css_tweaks.toggleHide('mod-view', ! val));
@ -1330,6 +1335,13 @@ export default class ChatHook extends Module {
});
}
toggleEmoteJail() {
const bigger = this.chat.context.get('chat.emotes.2x'),
enabled = this.chat.context.get('chat.emotes.limit-size');
this.css_tweaks.toggle('big-emote-jail', enabled && ! bigger);
this.css_tweaks.toggle('bigger-emote-jail', enabled && bigger);
}
cleanHighlights() {
const types = {