aboutsummaryrefslogtreecommitdiff
path: root/src/aoemotepreview.h
diff options
context:
space:
mode:
authorSalanto <62221668+Salanto@users.noreply.github.com>2024-05-18 03:33:43 +0200
committerGitHub <noreply@github.com>2024-05-18 03:33:43 +0200
commit51338e30e046f1a62c84049b34577f0f3b5db6e3 (patch)
tree283c95f8f776ed852d03a816388695afd65c0f73 /src/aoemotepreview.h
parent469e293a1885e49f1d5994d41ac7cfc9f4666952 (diff)
parentf9c7205210fb9f768f583065971ece09e6b5eb03 (diff)
Merge pull request #957 from AttorneyOnline/kaleidoscope
The Kaleidoscope - Hell, it's about time.
Diffstat (limited to 'src/aoemotepreview.h')
-rw-r--r--src/aoemotepreview.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/aoemotepreview.h b/src/aoemotepreview.h
new file mode 100644
index 00000000..0cf88c9e
--- /dev/null
+++ b/src/aoemotepreview.h
@@ -0,0 +1,32 @@
+#pragma once
+
+#include "aolayer.h"
+#include <QWidget>
+
+class AOEmotePreview : public QWidget
+{
+ Q_OBJECT
+
+public:
+ AOEmotePreview(AOApplication *ao_app, QWidget *parent = nullptr);
+
+ void display(QString character, QString emote, bool flipped = false, int xOffset = 0, int yOffset = 0);
+
+ void updateViewportGeometry();
+
+protected:
+ void resizeEvent(QResizeEvent *event);
+
+private:
+ AOApplication *ao_app;
+
+ QString m_character;
+ QString m_emote;
+
+ QWidget *ui_viewport;
+ BackgroundLayer *ui_vp_background;
+ SplashLayer *ui_vp_speedlines;
+ CharLayer *ui_vp_player_char;
+ BackgroundLayer *ui_vp_desk;
+ QLabel *ui_size_label;
+};