1
0
Fork 0

use more sophisticated screenshot binding from $FG_ROOT/keyboard.xml

This commit is contained in:
mfranz 2008-04-26 23:14:42 +00:00
parent e603302d8d
commit 4be84e1609

View file

@ -37,7 +37,15 @@
<item>
<label>Snapshot</label>
<binding>
<command>screen-capture</command>
<command>nasal</command>
<script>
var success = fgcommand("screen-capture");
var path = getprop("/sim/paths/screenshot-last");
if (success)
gui.popupTip("Screenshot written to '" ~ path ~ "'");
else
gui.popupTip("Error writing screenshot '" ~ path ~ "'");
</script>
</binding>
</item>