From 510c0f4b17f24eb534d22654a41e9157c89a8211 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Sun, 21 Mar 2021 05:12:44 +0300 Subject: Add timer packets to demo playback (#494) When the demo skips by some number of seconds, the timer will also skip forward by that duration. Co-authored-by: in1tiate <32779090+in1tiate@users.noreply.github.com> Co-authored-by: oldmud0 --- include/aoclocklabel.h | 2 ++ include/courtroom.h | 1 + include/demoserver.h | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/aoclocklabel.h b/include/aoclocklabel.h index 472ce68..830fb52 100644 --- a/include/aoclocklabel.h +++ b/include/aoclocklabel.h @@ -17,6 +17,8 @@ public: void set(qint64 msecs, bool update_text = false); void pause(); void stop(); + void skip(qint64 msecs); + bool active(); protected: void timerEvent(QTimerEvent *event) override; diff --git a/include/courtroom.h b/include/courtroom.h index 9766c7b..21191e5 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -307,6 +307,7 @@ public: void pause_clock(int id); void stop_clock(int id); void set_clock_visibility(int id, bool visible); + void skip_clocks(qint64 msecs); qint64 pong(); // Truncates text so it fits within theme-specified boundaries and sets the tooltip to the full string diff --git a/include/demoserver.h b/include/demoserver.h index e4eeef5..3dc645b 100644 --- a/include/demoserver.h +++ b/include/demoserver.h @@ -48,7 +48,7 @@ public slots: void start_server(); signals: - + void skip_timers(qint64 msecs); }; #endif // DEMOSERVER_H -- cgit