diff options
Diffstat (limited to 'src/aoemotebutton.h')
| -rw-r--r-- | src/aoemotebutton.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/aoemotebutton.h b/src/aoemotebutton.h new file mode 100644 index 00000000..3c316314 --- /dev/null +++ b/src/aoemotebutton.h @@ -0,0 +1,30 @@ +#pragma once + +#include "aoapplication.h" + +#include <QLabel> +#include <QPushButton> + +class AOEmoteButton : public QPushButton +{ + Q_OBJECT + +public: + AOEmoteButton(int id, int width, int height, AOApplication *ao_app, QWidget *parent = nullptr); + + int id(); + + void setImage(QString character, int emoteId, bool enabled); + + void setSelectedImage(QString p_image); + +Q_SIGNALS: + void emoteClicked(int p_id); + +private: + AOApplication *ao_app; + + int m_id = 0; + + QLabel *ui_selected = nullptr; +}; |
