1
0
Fork 0

Option to set screenshot directory.

This commit is contained in:
ThorstenB 2011-08-21 15:17:16 +02:00
parent 8e7d7012ce
commit fb984bf8ce
2 changed files with 18 additions and 0 deletions

View file

@ -583,6 +583,17 @@ var load_flight = func {
load_flight_sel.open();
}
##
# Screen-shot directory menu function
#
var set_screenshotdir_sel = nil;
var set_screenshotdir = func {
if (set_screenshotdir_sel == nil)
set_screenshotdir_sel = gui.DirSelector.new(
func(result) { setprop("/sim/paths/screenshot-dir", result.getValue()); },
"Select Screenshot Directory", "Ok", getprop("/sim/paths/screenshot-dir"));
set_screenshotdir_sel.open();
}
##
# Open property browser with given target path.

View file

@ -62,6 +62,13 @@
</script>
</binding>
</item>
<item>
<label>Screenshot Directory</label>
<binding>
<command>nasal</command>
<script>gui.set_screenshotdir()</script>
</binding>
</item>
<!--
<item>
<label>Last snapshot</label>