mirror-chatterino2/src/resources.cpp

60 lines
2.6 KiB
C++
Raw Normal View History

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-04-14 17:52:22 +02: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()
{
}
2017-04-12 17:46:44 +02:00
void Resources::load()
2017-01-13 18:59:11 +01:00
{
// badges
2017-04-12 17:46:44 +02:00
Resources::badgeStaff = new messages::LazyLoadedImage(new QPixmap(":/images/staff_bg.png"));
Resources::badgeAdmin = 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-04-12 17:46:44 +02:00
Resources::badgeTurbo = 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-04-12 17:46:44 +02:00
Resources::cheerBadge10000 = new messages::LazyLoadedImage(new QPixmap(":/images/cheer10000"));
Resources::cheerBadge5000 = new messages::LazyLoadedImage(new QPixmap(":/images/cheer5000"));
Resources::cheerBadge1000 = new messages::LazyLoadedImage(new QPixmap(":/images/cheer1000"));
Resources::cheerBadge100 = new messages::LazyLoadedImage(new QPixmap(":/images/cheer100"));
Resources::cheerBadge1 = new messages::LazyLoadedImage(new QPixmap(":/images/cheer1"));
2017-01-15 16:38:30 +01:00
// button
2017-04-12 17:46:44 +02: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-18 21:30:23 +01:00
}
2017-01-13 18:59:11 +01:00
}