diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-02 22:04:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-02 22:04:34 +0300 |
commit | 99a07142cccf792dd35b611edd1b41cb307b5847 (patch) | |
tree | 58734795019f1da88e8aa5aa12b7cc4043878fbc /src/gui/widgets/emotepage.h | |
parent | 370cb1fa897604e5d7bf9543881afad80f45f3ba (diff) | |
download | mv-99a07142cccf792dd35b611edd1b41cb307b5847.tar.gz mv-99a07142cccf792dd35b611edd1b41cb307b5847.tar.bz2 mv-99a07142cccf792dd35b611edd1b41cb307b5847.tar.xz mv-99a07142cccf792dd35b611edd1b41cb307b5847.zip |
improve chat emote window draw speed.
Diffstat (limited to 'src/gui/widgets/emotepage.h')
-rw-r--r-- | src/gui/widgets/emotepage.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/widgets/emotepage.h b/src/gui/widgets/emotepage.h index 0c2582318..f553fa750 100644 --- a/src/gui/widgets/emotepage.h +++ b/src/gui/widgets/emotepage.h @@ -25,12 +25,14 @@ #include <guichan/mouselistener.hpp> #include <guichan/widget.hpp> +#include <guichan/widgetlistener.hpp> #include "localconsts.h" class EmotePage final : public gcn::Widget, public Widget2, - public gcn::MouseListener + public gcn::MouseListener, + public gcn::WidgetListener { public: explicit EmotePage(const Widget2 *const widget); @@ -45,6 +47,10 @@ class EmotePage final : public gcn::Widget, int getIndexFromGrid(const int x, const int y) const; + void widgetResized(const gcn::Event &event A_UNUSED); + + void widgetMoved(const gcn::Event &event A_UNUSED); + void resetAction(); int getSelectedIndex() @@ -52,7 +58,9 @@ class EmotePage final : public gcn::Widget, private: ImageSet *mEmotes; + ImageCollection *mVertexes; int mSelectedIndex; + bool mRedraw; }; #endif // GUI_WIDGETS_EMOTEPAGE_H |