1
0
Fork 0

Merge branch 'master' of git://gitorious.org/fg/fgdata

This commit is contained in:
BARANGER Emmanuel 2011-05-03 19:54:44 +02:00
commit 0a1b6cd366

View file

@ -1123,10 +1123,22 @@ top down before the key bindings are parsed.
<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 ~ "'");
var threading = getprop("/sim/rendering/multithreading-mode");
var message = "";
if ( threading != nil and threading != "" and
threading != "SingleThreaded" )
{
message = "Threading model must be SingleThreaded (or not defined) for snapshots to work.";
gui.popupTip(message, 600, { button: { legend: "Ok", default: 1, binding: { command: "dialog-close" }}});
} else {
if (success) {
message = "Screenshot written to '" ~ path ~ "'";
gui.popupTip(message, 2);
} else {
message = "Error writing screenshot '" ~ path ~ "'";
gui.popupTip(message, 600, { button: { legend: "Ok", default: 1, binding: { command: "dialog-close" }}});
}
}
</script>
</binding>
<mod-shift>