From b055deeb903428742638cfbaa807a9e537f3c149 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Mon, 29 Nov 2021 22:55:52 +0000 Subject: [PATCH] gui/dialogs/flight-recorder-load.xml: added support for create-video and fixed-dt. This makes it easy to create video from a recording - video is auto-started/stopped etc. Also show tape filesize in preview. --- gui/dialogs/flight-recorder-load.xml | 50 ++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/gui/dialogs/flight-recorder-load.xml b/gui/dialogs/flight-recorder-load.xml index 3c59c9a90..5067c4e7d 100644 --- a/gui/dialogs/flight-recorder-load.xml +++ b/gui/dialogs/flight-recorder-load.xml @@ -300,11 +300,29 @@ 220 - + left 221 + /sim/gui/dialogs/flightrecorder/preview/tape-size-str + left + true + + 0.8 + 0.8 + 0.0 + 1 + + + + + 260 + + left + + + 261 /sim/gui/dialogs/flightrecorder/preview/version/flightgear left true @@ -317,7 +335,7 @@ - 25 + 29 0 3 @@ -362,6 +380,30 @@ + + + + + vbox + + /sim/gui/dialogs/flightrecorder-load/create-video + left + + + dialog-apply + + + + /sim/gui/dialogs/flightrecorder-load/fixed-dt + left + + + dialog-apply + + + + + @@ -385,7 +427,9 @@ settimer(func { var Config = props.Node.new({ "tape": getprop("/sim/gui/dialogs/flightrecorder/selected-tape", ""), - "same-aircraft": 0 + "same-aircraft": 0, + "create-video": getprop("/sim/gui/dialogs/flightrecorder-load/create-video"), + "fixed-dt": getprop("/sim/gui/dialogs/flightrecorder-load/fixed-dt"), }); if (fgcommand("load-tape", Config)) gui.showDialog("replay");