2017-06-11 09:31:45 +02:00
|
|
|
#include "resources.hpp"
|
2017-06-13 21:13:58 +02:00
|
|
|
#include "emotemanager.hpp"
|
|
|
|
#include "windowmanager.hpp"
|
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-06-13 21:13:58 +02:00
|
|
|
namespace {
|
2017-01-13 18:59:11 +01:00
|
|
|
|
2017-06-13 21:13:58 +02:00
|
|
|
inline messages::LazyLoadedImage *lli(EmoteManager &emoteManager, WindowManager &windowManager,
|
|
|
|
const char *pixmapPath, qreal scale = 1)
|
2017-01-13 18:59:11 +01:00
|
|
|
{
|
2017-06-13 21:13:58 +02:00
|
|
|
return new messages::LazyLoadedImage(emoteManager, windowManager, new QPixmap(pixmapPath),
|
|
|
|
scale);
|
2017-01-13 18:59:11 +01:00
|
|
|
}
|
|
|
|
|
2017-06-13 21:13:58 +02:00
|
|
|
} // namespace
|
|
|
|
|
|
|
|
Resources::Resources(EmoteManager &emoteManager, WindowManager &windowManager)
|
|
|
|
: badgeStaff(lli(emoteManager, windowManager, ":/images/staff_bg.png"))
|
|
|
|
, badgeAdmin(lli(emoteManager, windowManager, ":/images/admin_bg.png"))
|
|
|
|
, badgeGlobalModerator(lli(emoteManager, windowManager, ":/images/globalmod_bg.png"))
|
|
|
|
, badgeModerator(lli(emoteManager, windowManager, ":/images/moderator_bg.png"))
|
|
|
|
, badgeTurbo(lli(emoteManager, windowManager, ":/images/turbo_bg.png"))
|
|
|
|
, badgeBroadcaster(lli(emoteManager, windowManager, ":/images/broadcaster_bg.png"))
|
|
|
|
, badgePremium(lli(emoteManager, windowManager, ":/images/twitchprime_bg.png"))
|
2017-06-13 22:03:29 +02:00
|
|
|
, badgeVerified(lli(emoteManager, windowManager, ":/images/verified.png"))
|
2017-06-13 21:13:58 +02:00
|
|
|
, cheerBadge100000(lli(emoteManager, windowManager, ":/images/cheer100000"))
|
|
|
|
, cheerBadge10000(lli(emoteManager, windowManager, ":/images/cheer10000"))
|
|
|
|
, cheerBadge5000(lli(emoteManager, windowManager, ":/images/cheer5000"))
|
|
|
|
, cheerBadge1000(lli(emoteManager, windowManager, ":/images/cheer1000"))
|
|
|
|
, cheerBadge100(lli(emoteManager, windowManager, ":/images/cheer100"))
|
|
|
|
, cheerBadge1(lli(emoteManager, windowManager, ":/images/cheer1"))
|
|
|
|
, buttonBan(lli(emoteManager, windowManager, ":/images/button_ban.png", 0.25))
|
|
|
|
, buttonTimeout(lli(emoteManager, windowManager, ":/images/button_timeout.png", 0.25))
|
2017-01-13 18:59:11 +01:00
|
|
|
{
|
2017-01-18 21:30:23 +01:00
|
|
|
}
|
2017-06-07 10:09:24 +02:00
|
|
|
|
|
|
|
} // namespace chatterino
|