aboutsummaryrefslogtreecommitdiff
path: root/src/aoemotepreview.h
diff options
context:
space:
mode:
authorTrickyLeifa <date.epoch@gmail.com>2024-05-17 16:39:30 +0200
committerTrickyLeifa <date.epoch@gmail.com>2024-05-17 19:04:57 +0200
commit1ef96383c8f7ed136a0e028aef0835b4838b5e95 (patch)
treee87a9df097a50b4d1f918f8a4f37d210562d10d6 /src/aoemotepreview.h
parent39e4354b1dae5d8487ea5b84be9f304b1950a61a (diff)
Lightly reworked `NetworkManager`, ...
* Lightly reworked `NetworkManager` * Added new modules to handle various connection types. * TCP * WebSocket * Added general string splitter alias based on Qt version. * Replaced `lobby_constructed` and `courtroom_constructed` * Refactored and partially reimplemented the following classes: * `AOBlipPlayer` * `AOEmotePreview` * `AOMusicPlayer` * `AOSfxPlayer` * `AOTextArea`
Diffstat (limited to 'src/aoemotepreview.h')
-rw-r--r--src/aoemotepreview.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/aoemotepreview.h b/src/aoemotepreview.h
index ac86ff00..0cf88c9e 100644
--- a/src/aoemotepreview.h
+++ b/src/aoemotepreview.h
@@ -8,19 +8,20 @@ class AOEmotePreview : public QWidget
Q_OBJECT
public:
- AOEmotePreview(AOApplication *p_ao_app, QWidget *parent = nullptr);
+ AOEmotePreview(AOApplication *ao_app, QWidget *parent = nullptr);
- void set_widgets();
- void play(QString emote, QString char_name, bool flipped = false, int self_offset = 0, int self_offset_v = 0);
+ void display(QString character, QString emote, bool flipped = false, int xOffset = 0, int yOffset = 0);
+
+ void updateViewportGeometry();
protected:
- void resizeEvent(QResizeEvent *);
+ void resizeEvent(QResizeEvent *event);
private:
AOApplication *ao_app;
+ QString m_character;
QString m_emote;
- QString m_char;
QWidget *ui_viewport;
BackgroundLayer *ui_vp_background;