diff options
| author | TrickyLeifa <date.epoch@gmail.com> | 2024-06-03 18:11:17 +0200 |
|---|---|---|
| committer | TrickyLeifa <date.epoch@gmail.com> | 2024-06-03 18:11:17 +0200 |
| commit | a714bacd1aba3e54bf485580d112b42385788c50 (patch) | |
| tree | 252ce858a688d2025fcdba92036bd6a935a5608f /src/courtroom.h | |
| parent | 5af9dce21481e1d402df701b91593ccde4049c4b (diff) | |
Added screen slide timer
* Added screen slide timer
* Added so that the animation becomes interruptible.
Diffstat (limited to 'src/courtroom.h')
| -rw-r--r-- | src/courtroom.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/courtroom.h b/src/courtroom.h index b3b34c6a..a01102ec 100644 --- a/src/courtroom.h +++ b/src/courtroom.h @@ -23,6 +23,7 @@ #include "file_functions.h" #include "hardware_functions.h" #include "lobby.h" +#include "screenslidetimer.h" #include "scrolltext.h" #include "widgets/aooptionsdialog.h" @@ -310,9 +311,9 @@ private: int maximumMessages = 0; - QParallelAnimationGroup *screenshake_animation_group = new QParallelAnimationGroup; + QParallelAnimationGroup *m_screenshake_anim_group; - QParallelAnimationGroup *transition_animation_group = new QParallelAnimationGroup; + kal::ScreenSlideTimer *m_screenslide_timer; bool next_character_is_not_special = false; // If true, write the // next character as it is. @@ -446,12 +447,6 @@ private: QString m_chatmessage[MS_MAXIMUM]; QString m_previous_chatmessage[MS_MAXIMUM]; - /** - * @brief The amount of time to wait at the start and end of slide - * animations - */ - static const int TRANSITION_BOOKEND_DELAY = 300; - QString additive_previous; // char id, muted or not @@ -983,6 +978,5 @@ private Q_SLOTS: // After attempting to play a transition animation, clean up the viewport // objects for everyone else and continue the IC processing callstack - void finish_transition(); void post_transition_cleanup(); }; |
