1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-07 06:40:54 +00:00
This is the first release built with the updated build toolchain. Please let me know if you find anything unexpected that broke.

* Added: Setting to treat known usernames in chat as mentions even without an at sign (@) prefix.
* Added: Setting to automatically claim drops.
* Added: Setting to hide the Subtember banner.
* Changed: The stream latency metadata tool-tip now includes the buffer size value.
* Fixed: The stream latency metadata was not appearing on the new mod view layout.
* Fixed: The sub/bits leaderboard appearing in chat when it should be hidden by a setting.
* Fixed: Incorrect text color on the Subtember banner.
This commit is contained in:
SirStendec 2023-09-06 16:10:47 -04:00
parent 10ca28098b
commit 588d3e3da9
13 changed files with 243 additions and 11 deletions

View file

@ -900,6 +900,16 @@ export default class Chat extends Module {
}
});
this.settings.add('chat.filtering.all-mentions', {
default: false,
ui: {
component: 'setting-check-box',
path: 'Chat > Filtering > General >> Appearance',
title: 'Display mentions for all users without requiring an at sign (@).',
description: '**Note**: This setting can increase memory usage and impact chat performance.'
}
});
this.settings.add('chat.filtering.color-mentions', {
default: false,
ui: {
@ -910,6 +920,13 @@ export default class Chat extends Module {
}
});
this.settings.add('chat.filtering.need-colors', {
requires: ['chat.filtering.all-mentions' ,'chat.filtering.color-mentions'],
process(ctx) {
return ctx.get('chat.filtering.all-mentions') || ctx.get('chat.filtering.color-mentions')
}
});
this.settings.add('chat.filtering.bold-mentions', {
default: true,
ui: {
@ -1218,7 +1235,7 @@ export default class Chat extends Module {
room.buildBitsCSS();
});
this.context.on('changed:chat.filtering.color-mentions', async val => {
this.context.on('changed:chat.filtering.need-colors', async val => {
if ( val )
await this.createColorCache();
else
@ -1226,6 +1243,9 @@ export default class Chat extends Module {
this.emit(':update-line-tokens');
});
this.context.on('changed:chat.filtering.all-mentions', () => this.emit(':update-line-tokens'));
this.context.on('changed:chat.filtering.color-mentions', () => this.emit(':update-line-tokens'));
}
@ -1249,7 +1269,7 @@ export default class Chat extends Module {
this.on('site.subpump:pubsub-message', this.onPubSub, this);
if ( this.context.get('chat.filtering.color-mentions') )
if ( this.context.get('chat.filtering.need-colors') )
this.createColorCache().then(() => this.emit(':update-line-tokens'));
for(const key in TOKENIZERS)