2003-09-11 19:15:38 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<PropertyList>
|
2004-05-12 15:37:17 +00:00
|
|
|
<name>replay</name>
|
|
|
|
<modal>false</modal>
|
|
|
|
<layout>vbox</layout>
|
2003-09-11 19:15:38 +00:00
|
|
|
|
|
|
|
<text>
|
2004-05-12 15:37:17 +00:00
|
|
|
<label>Instant Replay</label>
|
2003-09-11 19:15:38 +00:00
|
|
|
</text>
|
2007-03-26 15:25:27 +00:00
|
|
|
<hrule/>
|
2003-09-11 19:15:38 +00:00
|
|
|
|
2009-10-04 20:49:43 +00:00
|
|
|
<nasal>
|
|
|
|
<open>
|
|
|
|
# Populate the view combo box with a list of the available views
|
|
|
|
var combo = cmdarg().getNode("group").getNode("combo");
|
|
|
|
combo.removeChildren("value");
|
|
|
|
|
|
|
|
var current_view = getprop("/sim/current-view/view-number");
|
|
|
|
var i = 0;
|
|
|
|
foreach (var v; view.views) {
|
|
|
|
|
|
|
|
var name = "Unnamed view " ~ v.getIndex();
|
|
|
|
|
|
|
|
if (v.getNode("name") != nil) {
|
|
|
|
name = v.getNode("name").getValue();
|
|
|
|
}
|
|
|
|
|
|
|
|
# Pre-populate the combo box selected value
|
|
|
|
if (v.getIndex() == current_view) {
|
|
|
|
setprop("/sim/replay/view-name", name);
|
|
|
|
}
|
|
|
|
|
|
|
|
combo.getNode("value[" ~ i ~ "]", 1).setValue(name);
|
|
|
|
i = i + 1;
|
|
|
|
}
|
|
|
|
</open>
|
|
|
|
</nasal>
|
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>0</row><col>0</col>
|
|
|
|
<halign>right</halign>
|
|
|
|
<label>Duration:</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<input>
|
|
|
|
<row>0</row><col>1</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/replay/duration</property>
|
|
|
|
</input>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>1</row><col>0</col>
|
|
|
|
<halign>right</halign>
|
|
|
|
<label>View:</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<combo>
|
|
|
|
<row>1</row><col>1</col>
|
|
|
|
<halign>left</halign>
|
2009-10-04 20:49:43 +00:00
|
|
|
<property>/sim/replay/view-name</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
2004-05-12 15:37:17 +00:00
|
|
|
</combo>
|
2009-10-04 20:49:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>2</row><col>0</col>
|
|
|
|
<halign>right</halign>
|
|
|
|
<label>Disable replay:</label>
|
|
|
|
</text>
|
2003-09-11 19:15:38 +00:00
|
|
|
|
2005-07-31 08:52:26 +00:00
|
|
|
<checkbox>
|
2009-10-04 20:49:43 +00:00
|
|
|
<row>2</row><col>1</col>
|
|
|
|
<halign>left</halign>
|
2005-07-31 08:52:26 +00:00
|
|
|
<property>/sim/replay/disable</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
2009-10-04 20:49:43 +00:00
|
|
|
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>During replay:</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>1</row><col>0</col>
|
|
|
|
<halign>center</halign>
|
|
|
|
<label>v/V</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>1</row><col>1</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Change view</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>2</row><col>0</col>
|
|
|
|
<halign>center</halign>
|
|
|
|
<label>Ctrl-v</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>2</row><col>1</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Reset view</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>3</row><col>0</col>
|
|
|
|
<halign>center</halign>
|
|
|
|
<label>p p</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>3</row><col>1</col>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>End replay</label>
|
|
|
|
</text>
|
2004-05-12 15:37:17 +00:00
|
|
|
</group>
|
2003-09-11 19:15:38 +00:00
|
|
|
|
2009-10-04 20:49:43 +00:00
|
|
|
<hrule/>
|
|
|
|
|
2004-05-12 15:37:17 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
<button>
|
|
|
|
<legend>Replay</legend>
|
2005-11-05 13:59:06 +00:00
|
|
|
<default>true</default>
|
|
|
|
<equal>true</equal>
|
2004-05-12 15:37:17 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
2009-10-04 20:49:43 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
var index = view.indexof(getprop("/sim/replay/view-name"));
|
|
|
|
setprop("/sim/current-view/view-number", index);
|
|
|
|
</script>
|
|
|
|
</binding>
|
2004-05-12 15:37:17 +00:00
|
|
|
<binding>
|
|
|
|
<command>replay</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
<button>
|
|
|
|
<legend>Cancel</legend>
|
2005-11-05 13:59:06 +00:00
|
|
|
<equal>true</equal>
|
2005-11-05 18:42:28 +00:00
|
|
|
<key>Esc</key>
|
2004-05-12 15:37:17 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
</group>
|
2003-09-11 19:15:38 +00:00
|
|
|
|
|
|
|
</PropertyList>
|