custom ffz moderator badges (#827)

This commit is contained in:
pphop
2018-10-26 00:53:03 +05:00
committed by fourtf
parent c13a88e3b6
commit 3c9bcd581a
6 changed files with 136 additions and 3 deletions
@@ -1107,7 +1107,14 @@ void TwitchMessageBuilder::appendTwitchBadges()
}
else if (badge == "moderator/1")
{
// TODO: Implement custom FFZ moderator badge
if (auto customModBadge = this->twitchChannel->ffzCustomModBadge())
{
this->emplace<EmoteElement>(
customModBadge.get(),
MessageElementFlag::BadgeChannelAuthority)
->setTooltip((*customModBadge)->tooltip.string);
continue;
}
this->emplace<ImageElement>(
Image::fromPixmap(app->resources->twitch.moderator),
MessageElementFlag::BadgeChannelAuthority)