mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 06:40:54 +00:00
4.21.0
* Added: Setting to toggle the Audio Compressor with a shortcut key. * Added: Gain Control for the Audio Compressor. Gain Control is an additional volume control that runs after the compressor, as an alternative to the built-in volume control which happens before the compressor. * Changed: Use case-insensitive string comparison for the `Current Page` profile rule. * Fixed: The current channel not being detected correctly on user pages. * API Added: Standardized input processors for settings. So far, there are `to_int` and `to_float` with support for bounds.
This commit is contained in:
parent
66702103ff
commit
b3c3c8130d
20 changed files with 785 additions and 154 deletions
|
@ -143,13 +143,8 @@ export default class Chat extends Module {
|
|||
title: 'Timestamp Font Size',
|
||||
description: 'How large should timestamps be, in pixels. Defaults to Font Size if not set.',
|
||||
component: 'setting-text-box',
|
||||
process(val) {
|
||||
val = parseInt(val, 10);
|
||||
if ( isNaN(val) || ! isFinite(val) || val <= 0 )
|
||||
return null;
|
||||
|
||||
return val;
|
||||
}
|
||||
process: 'to_int',
|
||||
bounds: [1]
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -160,13 +155,8 @@ export default class Chat extends Module {
|
|||
title: 'Font Size',
|
||||
description: "How large should text in chat be, in pixels. This may be affected by your browser's zoom and font size settings.",
|
||||
component: 'setting-text-box',
|
||||
process(val) {
|
||||
val = parseInt(val, 10);
|
||||
if ( isNaN(val) || ! isFinite(val) || val <= 0 )
|
||||
return 13;
|
||||
|
||||
return val;
|
||||
}
|
||||
process: 'to_int',
|
||||
bounds: [1]
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -252,13 +242,8 @@ export default class Chat extends Module {
|
|||
title: 'Scrollback Length',
|
||||
description: 'Keep up to this many lines in chat. Setting this too high will create lag.',
|
||||
component: 'setting-text-box',
|
||||
process(val) {
|
||||
val = parseInt(val, 10);
|
||||
if ( isNaN(val) || ! isFinite(val) || val < 1 )
|
||||
val = 150;
|
||||
|
||||
return val;
|
||||
}
|
||||
process: 'to_int',
|
||||
bounds: [1]
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -944,10 +929,7 @@ export default class Chat extends Module {
|
|||
description: 'Set the minimum contrast ratio used by Luma adjustments when determining readability.',
|
||||
|
||||
component: 'setting-text-box',
|
||||
|
||||
process(val) {
|
||||
return parseFloat(val)
|
||||
}
|
||||
process: 'to_float'
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue