blob: 3c316314837cda845225fa4ce30fda1095a79852 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
};
|