Merge branch 'master' of git://gitorious.org/fg/fgdata
This commit is contained in:
commit
0a1b6cd366
1 changed files with 16 additions and 4 deletions
20
keyboard.xml
20
keyboard.xml
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue