Marked VIP badge as "channel authority" badge (#1117)
* Marked VIP badge as authority badge * Added vip.png resource * Registered VIP icon resource * Update ResourcesAutogen.cpp * Update ResourcesAutogen.hpp * Update ResourcesAutogen.hpp
This commit is contained in:
@@ -74,5 +74,6 @@
|
||||
<file>twitch/subscriber.png</file>
|
||||
<file>twitch/turbo.png</file>
|
||||
<file>twitch/verified.png</file>
|
||||
<file>twitch/vip.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
</RCC>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 476 B |
@@ -43,6 +43,7 @@ Resources2::Resources2()
|
||||
this->twitch.subscriber = QPixmap(":/twitch/subscriber.png");
|
||||
this->twitch.turbo = QPixmap(":/twitch/turbo.png");
|
||||
this->twitch.verified = QPixmap(":/twitch/verified.png");
|
||||
this->twitch.vip = QPixmap(":/twitch/vip.png");
|
||||
}
|
||||
|
||||
} // namespace chatterino
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -55,7 +55,8 @@ public:
|
||||
QPixmap subscriber;
|
||||
QPixmap turbo;
|
||||
QPixmap verified;
|
||||
QPixmap vip;
|
||||
} twitch;
|
||||
};
|
||||
|
||||
} // namespace chatterino
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -1082,6 +1082,13 @@ void TwitchMessageBuilder::appendTwitchBadges()
|
||||
MessageElementFlag::BadgeChannelAuthority)
|
||||
->setTooltip("Twitch Channel Moderator");
|
||||
}
|
||||
else if (badge == "vip/1")
|
||||
{
|
||||
this->emplace<ImageElement>(
|
||||
Image::fromPixmap(app->resources->twitch.vip),
|
||||
MessageElementFlag::BadgeChannelAuthority)
|
||||
->setTooltip("VIP");
|
||||
}
|
||||
else if (badge == "broadcaster/1")
|
||||
{
|
||||
this->emplace<ImageElement>(
|
||||
|
||||
Reference in New Issue
Block a user