feat: add settings to toggle BTTV/FFZ global/channel emotes (#3935)
* feat: add settings to disable BTTV/FFZ global/channel emotes * docs: add changelog entry * fix: capitalize `BTTV` and `FFZ` * fix: rename and move settings
This commit is contained in:
@@ -349,16 +349,28 @@ void EmotePopup::loadChannel(ChannelPtr channel)
|
||||
*globalChannel, *subChannel, this->channel_->getName());
|
||||
|
||||
// global
|
||||
addEmotes(*globalChannel, *getApp()->twitch->getBttvEmotes().emotes(),
|
||||
"BetterTTV", MessageElementFlag::BttvEmote);
|
||||
addEmotes(*globalChannel, *getApp()->twitch->getFfzEmotes().emotes(),
|
||||
"FrankerFaceZ", MessageElementFlag::FfzEmote);
|
||||
if (Settings::instance().enableBTTVGlobalEmotes)
|
||||
{
|
||||
addEmotes(*globalChannel, *getApp()->twitch->getBttvEmotes().emotes(),
|
||||
"BetterTTV", MessageElementFlag::BttvEmote);
|
||||
}
|
||||
if (Settings::instance().enableFFZGlobalEmotes)
|
||||
{
|
||||
addEmotes(*globalChannel, *getApp()->twitch->getFfzEmotes().emotes(),
|
||||
"FrankerFaceZ", MessageElementFlag::FfzEmote);
|
||||
}
|
||||
|
||||
// channel
|
||||
addEmotes(*channelChannel, *this->twitchChannel_->bttvEmotes(), "BetterTTV",
|
||||
MessageElementFlag::BttvEmote);
|
||||
addEmotes(*channelChannel, *this->twitchChannel_->ffzEmotes(),
|
||||
"FrankerFaceZ", MessageElementFlag::FfzEmote);
|
||||
if (Settings::instance().enableBTTVChannelEmotes)
|
||||
{
|
||||
addEmotes(*channelChannel, *this->twitchChannel_->bttvEmotes(),
|
||||
"BetterTTV", MessageElementFlag::BttvEmote);
|
||||
}
|
||||
if (Settings::instance().enableFFZChannelEmotes)
|
||||
{
|
||||
addEmotes(*channelChannel, *this->twitchChannel_->ffzEmotes(),
|
||||
"FrankerFaceZ", MessageElementFlag::FfzEmote);
|
||||
}
|
||||
|
||||
this->globalEmotesView_->setChannel(globalChannel);
|
||||
this->subEmotesView_->setChannel(subChannel);
|
||||
|
||||
Reference in New Issue
Block a user