2017-01-04 15:12:31 +01:00
|
|
|
#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<int, LazyLoadedImage* >* Emotes::m_miscImageFromCache = new ConcurrentMap<int, LazyLoadedImage* >();
|
|
|
|
|
2017-01-05 16:07:20 +01:00
|
|
|
Emotes::Emotes()
|
|
|
|
{
|
2017-01-04 15:12:31 +01:00
|
|
|
|
2017-01-05 16:07:20 +01:00
|
|
|
}
|
2017-01-04 15:12:31 +01:00
|
|
|
|
2017-01-05 16:07:20 +01:00
|
|
|
LazyLoadedImage* Emotes::getCheerImage(long long amount, bool animated)
|
|
|
|
{
|
2017-01-05 16:42:26 +01:00
|
|
|
#pragma message WARN("Implement Emotes::getCheerImage")
|
2017-01-05 16:07:20 +01:00
|
|
|
// object image;
|
2017-01-04 15:12:31 +01:00
|
|
|
|
2017-01-05 16:07:20 +01:00
|
|
|
// if (cheer >= 100000)
|
|
|
|
// {
|
|
|
|
// image = GuiEngine.Current.GetImage(ImageType.Cheer100000);
|
|
|
|
// }
|
|
|
|
// else if (cheer >= 10000)
|
|
|
|
// {
|
|
|
|
// image = GuiEngine.Current.GetImage(ImageType.Cheer10000);
|
|
|
|
// }
|
|
|
|
// else if (cheer >= 5000)
|
|
|
|
// {
|
|
|
|
// image = GuiEngine.Current.GetImage(ImageType.Cheer5000);
|
|
|
|
// }
|
|
|
|
// else if (cheer >= 1000)
|
|
|
|
// {
|
|
|
|
// image = GuiEngine.Current.GetImage(ImageType.Cheer1000);
|
|
|
|
// }
|
|
|
|
// else if (cheer >= 100)
|
|
|
|
// {
|
|
|
|
// image = GuiEngine.Current.GetImage(ImageType.Cheer100);
|
|
|
|
// }
|
|
|
|
// else
|
|
|
|
// {
|
|
|
|
// image = GuiEngine.Current.GetImage(ImageType.Cheer1);
|
|
|
|
// }
|
2017-01-04 15:12:31 +01:00
|
|
|
|
2017-01-05 16:07:20 +01:00
|
|
|
// words.Add(new Word { Type = SpanType.Image, Value = image, Tooltip = "Twitch Cheer " + cheer });
|
2017-01-04 15:12:31 +01:00
|
|
|
|
2017-01-05 16:07:20 +01:00
|
|
|
return new LazyLoadedImage("");
|
2017-01-04 15:12:31 +01:00
|
|
|
}
|