From 0926f3c15842a71002c0ec374fd54832469036d8 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Tue, 19 Jan 2021 16:02:28 +0300 Subject: Implement sticker logic with animated image support (#414) * Implement sticker logic with animated image support (will probably be remade in a much better way for AOLayers) * port to aolayer Co-authored-by: in1tiate --- include/aolayer.h | 7 +++++++ include/courtroom.h | 2 ++ 2 files changed, 9 insertions(+) (limited to 'include') diff --git a/include/aolayer.h b/include/aolayer.h index 2e0510a..6265cec 100644 --- a/include/aolayer.h +++ b/include/aolayer.h @@ -211,4 +211,11 @@ public: InterfaceLayer(QWidget *p_parent, AOApplication *p_ao_app); void load_image(QString p_filename, QString p_miscname); }; + +class StickerLayer : public AOLayer { + Q_OBJECT +public: + StickerLayer(QWidget *p_parent, AOApplication *p_ao_app); + void load_image(QString p_charname); +}; #endif // AOLAYER_H diff --git a/include/courtroom.h b/include/courtroom.h index 5ad6fa6..f12b47f 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -617,6 +617,8 @@ private: ScrollText *ui_music_name; InterfaceLayer *ui_music_display; + StickerLayer *ui_vp_sticker; + AOButton *ui_pair_button; QListWidget *ui_pair_list; QSpinBox *ui_pair_offset_spinbox; -- cgit