diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-15 19:48:00 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-15 19:48:00 -0700 |
commit | 0a18932056e2a72f41cdd14c831344ad80cfb35b (patch) | |
tree | 9b3592df7749831be8d3e8bd5a8c04f6d1217c90 /src/gui/emoteshortcutcontainer.h | |
parent | 731dcee8bec7e32d576b0e6a9d98b9a21050362e (diff) | |
download | mana-0a18932056e2a72f41cdd14c831344ad80cfb35b.tar.gz mana-0a18932056e2a72f41cdd14c831344ad80cfb35b.tar.bz2 mana-0a18932056e2a72f41cdd14c831344ad80cfb35b.tar.xz mana-0a18932056e2a72f41cdd14c831344ad80cfb35b.zip |
Added emote database, which is loosely based off of the NPC database.
Also changed all emotes to be animated sprites now, and to load from
emotes.xml. This gives us a bit more flexibility to not only add more
emotes in the future, but allowing them to be animated as well.
NOTE: This commit, unlike the previous emote commits, breaks emotes if
you don't have the xml file. This will be available on Aethyra soon, but
is not rolled into an update at the moment.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/emoteshortcutcontainer.h')
-rw-r--r-- | src/gui/emoteshortcutcontainer.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/emoteshortcutcontainer.h b/src/gui/emoteshortcutcontainer.h index 5b3f61cd..f8a07dcc 100644 --- a/src/gui/emoteshortcutcontainer.h +++ b/src/gui/emoteshortcutcontainer.h @@ -22,6 +22,8 @@ #ifndef _AETHYRA_EMOTESHORTCUTCONTAINER_H__ #define _AETHYRA_EMOTESHORTCUTCONTAINER_H__ +#include <vector> + #include <guichan/mouselistener.hpp> #include <guichan/widget.hpp> #include <guichan/widgetlistener.hpp> @@ -30,8 +32,7 @@ #include "../guichanfwd.h" -#include "../resources/imageset.h" - +class AnimatedSprite; class Image; /** @@ -73,7 +74,7 @@ class EmoteShortcutContainer : public ShortcutContainer void mouseReleased(gcn::MouseEvent &event); private: - ImageSet *mEmoteImg; + std::vector<AnimatedSprite*> mEmoteImg; bool mEmoteClicked; int mEmoteMoved; |