aboutsummaryrefslogtreecommitdiff
path: root/src/animationlayer.h
diff options
context:
space:
mode:
authorTrickyLeifa <date.epoch@gmail.com>2024-05-22 23:30:31 +0200
committerTrickyLeifa <date.epoch@gmail.com>2024-05-22 23:30:31 +0200
commitd135bbc51144667fb3ee323a7635e3dbfc3f41a8 (patch)
tree9007aa8a989ea6ba90f011ae9632134f478cfc63 /src/animationlayer.h
parent52fc8d359426e068d9057a80fd456eda70c00683 (diff)
Fixed emote synchronization, ...
* Fixed emote synchronization * Still requires identical frame count. Will still cause freeze as it syncs. * Fixed frame effects not working on idle and talk emotes. * Characters are now repositioned after background sliding is over.
Diffstat (limited to 'src/animationlayer.h')
-rw-r--r--src/animationlayer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/animationlayer.h b/src/animationlayer.h
index da64354a..c67f7026 100644
--- a/src/animationlayer.h
+++ b/src/animationlayer.h
@@ -90,6 +90,7 @@ private:
bool m_flipped = false;
int m_minimum_duration = 0;
int m_maximum_duration = 0;
+ Qt::TransformationMode m_transformation_mode_hint = Qt::FastTransformation;
Qt::TransformationMode m_transformation_mode = Qt::FastTransformation;
AnimationLoader *m_loader = nullptr;
QSize m_frame_size;
@@ -103,6 +104,7 @@ private:
QTimer *m_ticker = nullptr;
bool m_first_frame = false;
int m_frame_number = 0;
+ int m_target_frame_number = -1;
int m_frame_count = 0;
AnimationFrame m_current_frame;
@@ -170,6 +172,7 @@ private:
QString m_character;
QString m_emote;
+ QString m_resolved_emote;
EmoteType m_emote_type = NoEmoteType;
QTimer *m_duration_timer = nullptr;
int m_duration = 0;