1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-08 15:20:55 +00:00

Emote Menu? Emote Menu.

* Add the emote menu.
* Add an option to replace the emote menu icon with the FFZ icon.
* Add icons to the icon font.
* Add a basic human duration formatting method to i18n.
* Add methods to the emotes module to get sets including the providers.
* Add a method to the emotes module to load an arbitrary set.
* Add a map to the emotes module for identifying providers.
* Add new events for when emote sets change.
* Add support for loading featured channel emotes.
* Add an option to suppress source sets in emote tooltips.
* Add an option to display a sellout line in emote tooltips.
* Remove emote menu from the WIP section of the home page of the menu.
* Fix a typo in rich content.
* Remove a bit of logging from fine.
* Add helper methods for set comparison and basic debouncing to utilities/object.
* Add constants for the emote menu.
* Add methods to show/hide a tooltip to the tooltip data object.
This commit is contained in:
SirStendec 2018-04-06 21:12:12 -04:00
parent 92130ebac4
commit e6e11fe562
23 changed files with 1423 additions and 26 deletions

View file

@ -240,19 +240,25 @@ export default class Room {
// ========================================================================
addSet(provider, set_id, data) {
let changed = false;
if ( ! this.emote_sets.sourceIncludes(provider, set_id) ) {
this.emote_sets.push(provider, set_id);
this.manager.emotes.refSet(set_id);
changed = true;
}
if ( data )
this.manager.emotes.loadSetData(set_id, data);
if ( changed )
this.manager.emotes.emit(':update-room-sets', this, provider, set_id, true);
}
removeSet(provider, set_id) {
if ( this.emote_sets.sourceIncludes(provider, set_id) ) {
this.emote_sets.remove(provider, set_id);
this.manager.emotes.unrefSet(set_id);
this.manager.emotes.emit(':update-room-sets', this, provider, set_id, false);
}
}
@ -297,6 +303,8 @@ export default class Room {
}
buildModBadgeCSS() {
if ( this.destroyed )
return;
if ( ! this.data || ! this.data.mod_urls || ! this.manager.context.get('chat.badges.custom-mod') )
return this.style.delete('mod-badge');
@ -321,6 +329,8 @@ export default class Room {
}
buildBadgeCSS() {
if ( this.destroyed )
return;
if ( ! this.badges )
return this.style.delete('badges');
@ -367,6 +377,8 @@ export default class Room {
}
buildBitsCSS() {
if ( this.destroyed )
return;
if ( ! this.bitsConfig )
return this.style.delete('bits');