summaryrefslogtreecommitdiff
path: root/src/gui/widgets/emotepage.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-02 22:04:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-02 22:04:34 +0300
commit99a07142cccf792dd35b611edd1b41cb307b5847 (patch)
tree58734795019f1da88e8aa5aa12b7cc4043878fbc /src/gui/widgets/emotepage.h
parent370cb1fa897604e5d7bf9543881afad80f45f3ba (diff)
downloadmanaverse-99a07142cccf792dd35b611edd1b41cb307b5847.tar.gz
manaverse-99a07142cccf792dd35b611edd1b41cb307b5847.tar.bz2
manaverse-99a07142cccf792dd35b611edd1b41cb307b5847.tar.xz
manaverse-99a07142cccf792dd35b611edd1b41cb307b5847.zip
improve chat emote window draw speed.
Diffstat (limited to 'src/gui/widgets/emotepage.h')
-rw-r--r--src/gui/widgets/emotepage.h10
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