blob: 315371b39440432a12b57d9f813318b8c5588d01 (
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
31
32
|
#ifndef AOEMOTEPREVIEW_H
#define AOEMOTEPREVIEW_H
#include "aolayer.h"
#include <QWidget>
class AOEmotePreview : public QWidget
{
Q_OBJECT
public:
AOEmotePreview(QWidget *parent = nullptr,
AOApplication *p_ao_app = nullptr);
void set_widgets();
void play(QString emote, QString char_name, bool flipped = false, int self_offset = 0, int self_offset_v = 0);
private:
AOApplication *ao_app;
QWidget *ui_viewport;
BackgroundLayer *ui_vp_background;
SplashLayer *ui_vp_speedlines;
CharLayer *ui_vp_player_char;
BackgroundLayer *ui_vp_desk;
QLabel *ui_size_label;
QString m_emote = "";
QString m_char = "";
protected:
void resizeEvent(QResizeEvent *);
};
#endif // AOEMOTEPREVIEW_H
|