mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 06:40:54 +00:00
4.20.79
* Added: Setting to control the display of animated emotes. Before you all get excited, this is for better integration with the `BetterTTV Emotes` add-on as well as any future add-ons with animated emotes. * Added: Support for "Native Sort" for the emote menu, which uses the order from the API response. * Added: Quick Navigation for the emote menu, which places a list of emote sets along the right side. * Fixed: Skin tone picker for emoji in the emote menu not appearing correctly. * Fixed: Center the FFZ Control Center correctly when opening it. * Fixed: Modify the DOM we're emitting on clips pages for chat lines. Fixes night/betterttv#4416 * API Added: Support for animated images for emotes.
This commit is contained in:
parent
5a5a68adb6
commit
fc359d53e0
12 changed files with 602 additions and 101 deletions
|
@ -918,8 +918,49 @@ export default class Chat extends Module {
|
|||
}
|
||||
});
|
||||
|
||||
this.settings.add('chat.emotes.animated', {
|
||||
default: null,
|
||||
process(ctx, val) {
|
||||
if ( val == null )
|
||||
val = ctx.get('ffzap.betterttv.gif_emoticons_mode') === 2 ? 1 : 0;
|
||||
return val;
|
||||
},
|
||||
ui: {
|
||||
path: 'Chat > Appearance >> Emotes',
|
||||
title: 'Animated Emotes',
|
||||
description: 'This controls whether or not animated emotes are allowed to play in chat. When this is `Disabled`, emotes will appear as static images. Setting this to `Enable on Hover` may cause performance issues.',
|
||||
component: 'setting-select-box',
|
||||
data: [
|
||||
{value: 0, title: 'Disabled'},
|
||||
{value: 1, title: 'Enabled'},
|
||||
{value: 2, title: 'Enable on Hover'}
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
this.settings.add('tooltip.emote-images.animated', {
|
||||
requires: ['chat.emotes.animated'],
|
||||
default: null,
|
||||
process(ctx, val) {
|
||||
if ( val == null )
|
||||
val = ctx.get('chat.emotes.animated') ? true : false;
|
||||
return val;
|
||||
},
|
||||
ui: {
|
||||
path: 'Chat > Tooltips >> Emotes',
|
||||
title: 'Display animated images of emotes.',
|
||||
description: 'If this is not overridden, animated images are only shown in emote tool-tips if [Chat > Appearance >> Emotes > Animated Emotes](~chat.appearance.emotes) is not disabled.',
|
||||
component: 'setting-check-box'
|
||||
}
|
||||
});
|
||||
|
||||
this.settings.add('chat.bits.animated', {
|
||||
default: true,
|
||||
requires: ['chat.emotes.animated'],
|
||||
default: null,
|
||||
process(ctx, val) {
|
||||
if ( val == null )
|
||||
val = ctx.get('chat.emotes.animated') ? true : false
|
||||
},
|
||||
|
||||
ui: {
|
||||
path: 'Chat > Bits and Cheering >> Appearance',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue