1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-04 11:44:00 +00:00

3.5.394. Fix the /card command and switching mod card targets while the mod card is open. Add more modifier emotes for Christmas.

This commit is contained in:
SirStendec 2016-12-10 22:24:31 -05:00
parent 70ec6d5348
commit c4142edeb2
8 changed files with 44 additions and 7 deletions

View file

@ -1,3 +1,9 @@
<div class="list-header">3.5.394 <time datetime="2016-12-08">(2016-12-08)</time></div>
<ul class="chat-menu-content menu-side-padding">
<li>Fixed: The <code>/card</code> command and the link in whisper windows to Open Moderation Card were not working.</li>
<li>Fixed: Switching moderation cards to another user by clicking their name in moderation card chat history.</li>
</ul>
<div class="list-header">3.5.393 <time datetime="2016-12-07">(2016-12-07)</time></div> <div class="list-header">3.5.393 <time datetime="2016-12-07">(2016-12-07)</time></div>
<ul class="chat-menu-content menu-side-padding"> <ul class="chat-menu-content menu-side-padding">
<li>API Added: <code>api.room_add_user_badge</code> and <code>api.room_remove_user_badge</code> methods for adding and removing room-specific badges from a user. Note: These methods only function when the associated room is loaded.</li> <li>API Added: <code>api.room_add_user_badge</code> and <code>api.room_remove_user_badge</code> methods for adding and removing room-specific badges from a user. Note: These methods only function when the associated room is loaded.</li>

View file

@ -259,7 +259,7 @@ FFZ.chat_commands.card = function(room, args) {
} }
} }
this._roomv.get('controller').send('showModOverlay', { this._roomv.actions.showModOverlay.call(this._roomv, {
top: y, top: y,
left: x, left: x,
bottom: bottom, bottom: bottom,

View file

@ -1574,7 +1574,7 @@ FFZ.prototype._build_mod_card_history = function(msg, modcard, show_from, ts_cli
if ( modcard ) { if ( modcard ) {
modcard.get('cardInfo.user.id') !== msg.from && jQuery('span.from', l_el).click(function(e) { modcard.get('cardInfo.user.id') !== msg.from && jQuery('span.from', l_el).click(function(e) {
var el = modcard.get('element'); var el = modcard.get('element');
el && f._roomv && f._roomv.get('context.model.id') === msg.room && f._roomv.get('controller').send('showModOverlay', { el && f._roomv && f._roomv.get('room.id') === msg.room && f._roomv.actions.showModCard.call(f._roomv, {
sender: msg.from, sender: msg.from,
top: parseInt(el.style.top), top: parseInt(el.style.top),
left: parseInt(el.style.left) left: parseInt(el.style.left)

View file

@ -1035,7 +1035,7 @@ FFZ.prototype.add_room = function(room_id, room) {
// Why don't we set the scrollback length, too? // Why don't we set the scrollback length, too?
room.set('messageBufferSize', this.settings.scrollback_length + ((this._roomv && !this._roomv.get('stuckToBottom') && this._roomv.get('controller.model.id') === room_id) ? 150 : 0)); room.set('messageBufferSize', this.settings.scrollback_length + ((this._roomv && !this._roomv.get('stuckToBottom') && this._roomv.get('room.id') === room_id) ? 150 : 0));
// Load the room's data from the API. // Load the room's data from the API.
this.load_room(room_id); this.load_room(room_id);

View file

@ -20,6 +20,26 @@ var FFZ = window.FrankerFaceZ,
70854: { 70854: {
modifier: true, modifier: true,
modifier_offset: '30px 0 0' modifier_offset: '30px 0 0'
},
147049: {
modifier: true,
modifier_offset: '4px 1px 0 3px'
},
147011: {
modifier: true,
modifier_offset: '0'
},
70864: {
modifier: true,
modifier_offset: '0'
},
147038: {
modifier: true,
modifier_offset: '0'
} }
}; };

View file

@ -61,7 +61,7 @@ FFZ.channel_metadata = {};
// Version // Version
var VER = FFZ.version_info = { var VER = FFZ.version_info = {
major: 3, minor: 5, revision: 393, major: 3, minor: 5, revision: 394,
toString: function() { toString: function() {
return [VER.major, VER.minor, VER.revision].join(".") + (VER.extra || ""); return [VER.major, VER.minor, VER.revision].join(".") + (VER.extra || "");
} }
@ -292,7 +292,7 @@ FFZ.prototype.initialize = function(increment, delay) {
return this.init_normal(delay); return this.init_normal(delay);
// Check for the dashboard. // Check for the dashboard.
if ( /\/[^\/]+\/dashboard/.test(location.pathname) && !/bookmarks$/.test(location.pathname) ) if ( window.PP && /\/[^\/]+\/dashboard/.test(location.pathname) && !/bookmarks$/.test(location.pathname) )
return this.init_dashboard(delay); return this.init_dashboard(delay);
var loaded = FFZ.utils.ember_resolve('model:room'); var loaded = FFZ.utils.ember_resolve('model:room');

View file

@ -975,7 +975,7 @@ module.exports = FFZ.utils = {
emote_css: function(emote) { emote_css: function(emote) {
var output = ''; var output = '';
if ( ! emote.margins && ! emote.css ) if ( ! emote.margins && (!emote.modifier || (! emote.modifier_offset && ! emote.extra_width && ! emote.shrink_to_fit)) && ! emote.css )
return output; return output;
if ( emote.modifier && (emote.modifier_offset || emote.margins || emote.extra_width || emote.shrink_to_fit) ) { if ( emote.modifier && (emote.modifier_offset || emote.margins || emote.extra_width || emote.shrink_to_fit) ) {

View file

@ -3793,10 +3793,21 @@ body.ffz-bttv #ffz-feed-tabs .tabs { margin-bottom: 0 }
z-index: 0; z-index: 0;
} }
.modified-emoticon[data-ffz-emote="59829"] span { right: 128px } .ffz-bttv .emoticon[data-ffz-emote="70864"]:hover { opacity: 0 }
.modified-emoticon[data-ffz-emote="59829"] span { right: 128px }
.modified-emoticon > img.emoticon { margin: 0 !important } .modified-emoticon > img.emoticon { margin: 0 !important }
.emoticon[data-ffz-modifiers~="147011"] { clip-path: circle(14px at 50% 50%) }
.modified-emoticon > img.emoticon[data-ffz-modifiers~="147038"] {
transform: translateY(-2px);
max-height: 24px;
clip-path: circle(14px at 50% 50%);
}
.modified-emoticon:hover span .emoticon[data-ffz-emote="70864"],
.modified-emoticon:not(:hover) .emoticon[data-ffz-modifiers~="70864"] { opacity: 0 }
.modified-emoticon span { .modified-emoticon span {
position: absolute; position: absolute;
top: -20px; bottom: -20px; left: -20px; right: -20px; top: -20px; bottom: -20px; left: -20px; right: -20px;