From 713149ceb6d24230f0ee0db5707c29903ed4b2b5 Mon Sep 17 00:00:00 2001 From: Lars Toenning <dev@ltoenning.de> Date: Wed, 25 Mar 2020 17:22:21 +0100 Subject: [PATCH] Update replay dialog --- defaults.xml | 3 ++- gui/dialogs/replay.xml | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/defaults.xml b/defaults.xml index fa6035058..837bfd67f 100644 --- a/defaults.xml +++ b/defaults.xml @@ -816,7 +816,8 @@ Started September 2000 by David Megginson, david@megginson.com <skip-flight-controls-mode type="bool" userarchive="y">false</skip-flight-controls-mode> </mouse> <replay> - <duration type="double">90</duration> + <duration type="double" userarchive="y">90</duration> + <duration-act type="bool" userarchive="y">false</duration-act> <view type="int">1</view> <looped type="bool" userarchive="y">true</looped> <buffer> diff --git a/gui/dialogs/replay.xml b/gui/dialogs/replay.xml index 67975fc3b..e27175f86 100644 --- a/gui/dialogs/replay.xml +++ b/gui/dialogs/replay.xml @@ -124,6 +124,8 @@ </color> </text> + <empty><pref-width>1</pref-width></empty> + <checkbox> <name>replay-looped</name> <halign>left</halign> @@ -139,6 +141,35 @@ <object-name>replay-looped</object-name> </binding> </checkbox> + + <text> + <label>Show only last:</label> + <color> + <red>0.7</red> + <green>0.7</green> + <blue>0.7</blue> + <alpha>1</alpha> + </color> + </text> + + <empty><pref-width>10</pref-width></empty> + + <checkbox> + <name>replay-duration-act</name> + <halign>center</halign> + <color-highlight> + <red type="float">0.6</red> + <green type="float">0.6</green> + <blue type="float">0.6</blue> + <alpha type="float">0.8</alpha> + </color-highlight> + <property>/sim/replay/duration-act</property> + <binding> + <command>dialog-apply</command> + <object-name>replay-duration-act</object-name> + </binding> + </checkbox> + <input> <name>replay-duration</name> <pref-width>40</pref-width> @@ -155,6 +186,16 @@ </binding> </input> + <text> + <label>seconds</label> + <color> + <red>0.7</red> + <green>0.7</green> + <blue>0.7</blue> + <alpha>1</alpha> + </color> + </text> + <empty><pref-width>40</pref-width></empty> <text>