aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCrystalwarrior <Varsash@Gmail.com>2021-03-21 05:12:44 +0300
committerGitHub <noreply@github.com>2021-03-20 21:12:44 -0500
commit510c0f4b17f24eb534d22654a41e9157c89a8211 (patch)
tree079a0e3f799ed55ac80370b289b0ba9496eeb7c0 /include
parente3ba27c47e4846e1a93057d83464ecff027da7be (diff)
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 <oldmud0@users.noreply.github.com>
Diffstat (limited to 'include')
-rw-r--r--include/aoclocklabel.h2
-rw-r--r--include/courtroom.h1
-rw-r--r--include/demoserver.h2
3 files changed, 4 insertions, 1 deletions
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