Added custom FrankerFaceZ VIP badges (#2628)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -60,6 +60,7 @@ enum class MessageElementFlag : int64_t {
|
||||
BadgeGlobalAuthority = (1LL << 14),
|
||||
|
||||
// Slot 2: Twitch
|
||||
// - VIP badge
|
||||
// - Moderator badge
|
||||
// - Broadcaster badge
|
||||
BadgeChannelAuthority = (1LL << 15),
|
||||
@@ -275,6 +276,16 @@ protected:
|
||||
const QSize &size) override;
|
||||
};
|
||||
|
||||
class VipBadgeElement : public BadgeElement
|
||||
{
|
||||
public:
|
||||
VipBadgeElement(const EmotePtr &data, MessageElementFlags flags_);
|
||||
|
||||
protected:
|
||||
MessageLayoutElement *makeImageLayoutElement(const ImagePtr &image,
|
||||
const QSize &size) override;
|
||||
};
|
||||
|
||||
class FfzBadgeElement : public BadgeElement
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user