From 4ad3a8e89e64ce3ae845d2786dd433ab2682393e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Apr 2013 22:08:55 +0300 Subject: Add support for animated emotes. Not particles but really animated emotes. First frame used as icon. --- src/resources/emotedb.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/resources/emotedb.cpp') diff --git a/src/resources/emotedb.cpp b/src/resources/emotedb.cpp index 7e923c034..0492cb848 100644 --- a/src/resources/emotedb.cpp +++ b/src/resources/emotedb.cpp @@ -237,6 +237,15 @@ const AnimatedSprite *EmoteDB::getAnimation2(int id, const bool allowNull) return getAnimation(id, allowNull); } +AnimatedSprite *EmoteDB::getClone(int id, const bool allowNull) +{ + const AnimatedSprite *const sprite = getAnimation2(id, allowNull); + if (sprite) + return AnimatedSprite::clone(sprite); + + return nullptr; +} + const EmoteSprite *EmoteDB::getSprite(const int id, const bool allowNull) { const EmoteInfo *const info = get(id, allowNull); -- cgit v1.2.3-70-g09d2