2017-01-13 18:59:11 +01:00
|
|
|
#include "resources.h"
|
2017-01-18 04:52:47 +01:00
|
|
|
|
|
|
|
#include <QPixmap>
|
2017-01-13 18:59:11 +01:00
|
|
|
|
2017-01-18 21:30:23 +01:00
|
|
|
namespace chatterino {
|
2017-01-13 18:59:11 +01:00
|
|
|
|
2017-01-18 21:30:23 +01:00
|
|
|
messages::LazyLoadedImage *Resources::badgeStaff(NULL);
|
|
|
|
messages::LazyLoadedImage *Resources::badgeAdmin(NULL);
|
|
|
|
messages::LazyLoadedImage *Resources::badgeModerator(NULL);
|
|
|
|
messages::LazyLoadedImage *Resources::badgeGlobalmod(NULL);
|
|
|
|
messages::LazyLoadedImage *Resources::badgeTurbo(NULL);
|
|
|
|
messages::LazyLoadedImage *Resources::badgeBroadcaster(NULL);
|
|
|
|
messages::LazyLoadedImage *Resources::badgePremium(NULL);
|
2017-01-13 18:59:11 +01:00
|
|
|
|
2017-01-18 21:30:23 +01:00
|
|
|
messages::LazyLoadedImage *Resources::cheerBadge100000(NULL);
|
|
|
|
messages::LazyLoadedImage *Resources::cheerBadge10000(NULL);
|
|
|
|
messages::LazyLoadedImage *Resources::cheerBadge5000(NULL);
|
|
|
|
messages::LazyLoadedImage *Resources::cheerBadge1000(NULL);
|
|
|
|
messages::LazyLoadedImage *Resources::cheerBadge100(NULL);
|
|
|
|
messages::LazyLoadedImage *Resources::cheerBadge1(NULL);
|
|
|
|
|
|
|
|
messages::LazyLoadedImage *Resources::buttonBan(NULL);
|
|
|
|
messages::LazyLoadedImage *Resources::buttonTimeout(NULL);
|
2017-01-15 16:38:30 +01:00
|
|
|
|
2017-01-13 18:59:11 +01:00
|
|
|
Resources::Resources()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
Resources::load()
|
|
|
|
{
|
|
|
|
// badges
|
2017-01-18 04:33:30 +01:00
|
|
|
Resources::badgeStaff =
|
2017-01-18 21:30:23 +01:00
|
|
|
new messages::LazyLoadedImage(new QPixmap(":/images/staff_bg.png"));
|
2017-01-18 04:33:30 +01:00
|
|
|
Resources::badgeAdmin =
|
2017-01-18 21:30:23 +01:00
|
|
|
new messages::LazyLoadedImage(new QPixmap(":/images/admin_bg.png"));
|
2017-01-18 04:33:30 +01:00
|
|
|
Resources::badgeModerator =
|
2017-01-18 21:30:23 +01:00
|
|
|
new messages::LazyLoadedImage(new QPixmap(":/images/moderator_bg.png"));
|
2017-01-18 04:33:30 +01:00
|
|
|
Resources::badgeGlobalmod =
|
2017-01-18 21:30:23 +01:00
|
|
|
new messages::LazyLoadedImage(new QPixmap(":/images/globalmod_bg.png"));
|
2017-01-18 04:33:30 +01:00
|
|
|
Resources::badgeTurbo =
|
2017-01-18 21:30:23 +01:00
|
|
|
new messages::LazyLoadedImage(new QPixmap(":/images/turbo_bg.png"));
|
|
|
|
Resources::badgeBroadcaster = new messages::LazyLoadedImage(
|
|
|
|
new QPixmap(":/images/broadcaster_bg.png"));
|
|
|
|
Resources::badgePremium = new messages::LazyLoadedImage(
|
|
|
|
new QPixmap(":/images/twitchprime_bg.png"));
|
2017-01-13 18:59:11 +01:00
|
|
|
|
|
|
|
// cheer badges
|
2017-01-18 04:33:30 +01:00
|
|
|
Resources::cheerBadge100000 =
|
2017-01-18 21:30:23 +01:00
|
|
|
new messages::LazyLoadedImage(new QPixmap(":/images/cheer100000"));
|
2017-01-18 04:33:30 +01:00
|
|
|
Resources::cheerBadge10000 =
|
2017-01-18 21:30:23 +01:00
|
|
|
new messages::LazyLoadedImage(new QPixmap(":/images/cheer10000"));
|
2017-01-18 04:33:30 +01:00
|
|
|
Resources::cheerBadge5000 =
|
2017-01-18 21:30:23 +01:00
|
|
|
new messages::LazyLoadedImage(new QPixmap(":/images/cheer5000"));
|
2017-01-18 04:33:30 +01:00
|
|
|
Resources::cheerBadge1000 =
|
2017-01-18 21:30:23 +01:00
|
|
|
new messages::LazyLoadedImage(new QPixmap(":/images/cheer1000"));
|
2017-01-18 04:33:30 +01:00
|
|
|
Resources::cheerBadge100 =
|
2017-01-18 21:30:23 +01:00
|
|
|
new messages::LazyLoadedImage(new QPixmap(":/images/cheer100"));
|
2017-01-18 04:33:30 +01:00
|
|
|
Resources::cheerBadge1 =
|
2017-01-18 21:30:23 +01:00
|
|
|
new messages::LazyLoadedImage(new QPixmap(":/images/cheer1"));
|
2017-01-15 16:38:30 +01:00
|
|
|
|
|
|
|
// button
|
2017-01-18 21:30:23 +01:00
|
|
|
Resources::buttonBan = new messages::LazyLoadedImage(
|
|
|
|
new QPixmap(":/images/button_ban.png"), 0.25);
|
|
|
|
Resources::buttonTimeout = new messages::LazyLoadedImage(
|
|
|
|
new QPixmap(":/images/button_timeout.png"), 0.25);
|
|
|
|
}
|
2017-01-13 18:59:11 +01:00
|
|
|
}
|