From 2a44dba040b88f76c180ad0e7724abd48a9a625d Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Fri, 19 Jun 2020 23:06:15 +0100 Subject: [PATCH] Created new dialogue to control flight recorder. New dialogue is accesible from the File menu. Allows enable/disable of three new features: multiplayer record, continuous record and recovery snapshot. Also moved load/save tape from the file menu into the new dialogue. Also removed recently-added flight recorder items from the multiplayer dialogue. The recovery snapshot interval is 1s second if enabled. Might be better to make it longer, e.g. 5s, but don't know how to change checkbox value. --- Translations/default/menu.xml | 1 + gui/dialogs/flight-recorder.xml | 115 ++++++++++++++++++++++++++++++++ gui/dialogs/multiplayer.xml | 28 -------- gui/menubar.xml | 14 +--- 4 files changed, 118 insertions(+), 40 deletions(-) create mode 100644 gui/dialogs/flight-recorder.xml diff --git a/Translations/default/menu.xml b/Translations/default/menu.xml index e5ee85f78..65b2e061d 100644 --- a/Translations/default/menu.xml +++ b/Translations/default/menu.xml @@ -7,6 +7,7 @@ File Reset + Flight Recorder Control Load Flight Recorder Tape Save Flight Recorder Tape Screenshot diff --git a/gui/dialogs/flight-recorder.xml b/gui/dialogs/flight-recorder.xml new file mode 100644 index 000000000..2affcbca9 --- /dev/null +++ b/gui/dialogs/flight-recorder.xml @@ -0,0 +1,115 @@ + + + + + flight-recorder-control + vbox + + + + hbox + 1 + + + + + + 1 + + + + + + + + + table + + + 0 + 0 + sim/replay/multiplayer + + dialog-apply + + + + 0 + 1 + + left + + + + 1 + 0 + sim/replay/record-continuous + + dialog-apply + + + + 1 + 1 + + left + + + + 2 + 0 + sim/replay/recovery-period + + dialog-apply + + + + 2 + 1 + + left + + + + + 4 + 1 + + left + + + + + 5 + 1 + + left + + + + diff --git a/gui/dialogs/multiplayer.xml b/gui/dialogs/multiplayer.xml index 67b3c6eaa..1b98dd2a5 100644 --- a/gui/dialogs/multiplayer.xml +++ b/gui/dialogs/multiplayer.xml @@ -167,34 +167,6 @@ - - 2 - 1 - 2 - left - multiplayer-record - - /sim/replay/multiplayer - - dialog-apply - multiplayer-record - - - - - 3 - 1 - 2 - left - record-continuous - - sim/replay/record-continuous - - dialog-apply - record-continuous - - - 4 1 diff --git a/gui/menubar.xml b/gui/menubar.xml index 885f1346b..3828cb1be 100644 --- a/gui/menubar.xml +++ b/gui/menubar.xml @@ -13,20 +13,10 @@ - load-tape - Shift-F1 + flight-recorder-control dialog-show - flight-recorder-load - - - - - save-tape - Shift-F2 - - dialog-show - flight-recorder-save + flight-recorder-control