mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
64 lines
2.4 KiB
C++
64 lines
2.4 KiB
C++
#include "emotes.h"
|
|
|
|
ConcurrentMap<QString, TwitchEmoteValue*>* Emotes::m_twitchEmotes = new ConcurrentMap<QString, TwitchEmoteValue*>();
|
|
ConcurrentMap<QString, LazyLoadedImage* >* Emotes::m_bttvEmotes = new ConcurrentMap<QString, LazyLoadedImage* >();
|
|
ConcurrentMap<QString, LazyLoadedImage* >* Emotes::m_ffzEmotes = new ConcurrentMap<QString, LazyLoadedImage* >();
|
|
ConcurrentMap<QString, LazyLoadedImage* >* Emotes::m_chatterinoEmotes = new ConcurrentMap<QString, LazyLoadedImage* >();
|
|
ConcurrentMap<QString, LazyLoadedImage* >* Emotes::m_bttvChannelEmoteFromCaches = new ConcurrentMap<QString, LazyLoadedImage* >();
|
|
ConcurrentMap<QString, LazyLoadedImage* >* Emotes::m_ffzChannelEmoteFromCaches = new ConcurrentMap<QString, LazyLoadedImage* >();
|
|
ConcurrentMap<int, LazyLoadedImage* >* Emotes::m_twitchEmoteFromCache = new ConcurrentMap<int, LazyLoadedImage* >();
|
|
ConcurrentMap<QString, LazyLoadedImage* >* Emotes::m_miscImageFromCache = new ConcurrentMap<QString, LazyLoadedImage* >();
|
|
|
|
LazyLoadedImage* Emotes::m_cheerBadge100000 = new LazyLoadedImage(new QImage(":/cheer100000"));
|
|
LazyLoadedImage* Emotes::m_cheerBadge10000 = new LazyLoadedImage(new QImage(":/cheer10000"));
|
|
LazyLoadedImage* Emotes::m_cheerBadge5000 = new LazyLoadedImage(new QImage(":/cheer5000"));
|
|
LazyLoadedImage* Emotes::m_cheerBadge1000 = new LazyLoadedImage(new QImage(":/cheer1000"));
|
|
LazyLoadedImage* Emotes::m_cheerBadge100 = new LazyLoadedImage(new QImage(":/cheer100"));
|
|
LazyLoadedImage* Emotes::m_cheerBadge1 = new LazyLoadedImage(new QImage(":/cheer1"));
|
|
|
|
Emotes::Emotes()
|
|
{
|
|
|
|
}
|
|
|
|
LazyLoadedImage* Emotes::getTwitchEmoteById(const QString &name, long id)
|
|
{
|
|
#warning "xD"
|
|
return new LazyLoadedImage(NULL);
|
|
// return m_twitchEmoteFromCache->getOrAdd()
|
|
}
|
|
|
|
LazyLoadedImage* Emotes::getCheerImage(long long amount, bool animated)
|
|
{
|
|
#warning "xD"
|
|
return getCheerBadge(amount);
|
|
}
|
|
|
|
LazyLoadedImage* Emotes::getCheerBadge(long long amount)
|
|
{
|
|
if (amount >= 100000)
|
|
{
|
|
return m_cheerBadge100000;
|
|
}
|
|
else if (amount >= 10000)
|
|
{
|
|
return m_cheerBadge10000;
|
|
}
|
|
else if (amount >= 5000)
|
|
{\
|
|
return m_cheerBadge5000;
|
|
}
|
|
else if (amount >= 1000)
|
|
{
|
|
return m_cheerBadge1000;
|
|
}
|
|
else if (amount >= 100)
|
|
{
|
|
return m_cheerBadge100;
|
|
}
|
|
else
|
|
{
|
|
return m_cheerBadge1;
|
|
}
|
|
}
|