1
0
Fork 0

Merge branch 'master' of \New Git\fgdata

This commit is contained in:
Vivian Meazza 2011-05-07 10:43:49 +01:00
commit 9c99ae95f1
2 changed files with 11 additions and 4 deletions

View file

@ -1123,10 +1123,15 @@ 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 button = { button: { legend: "Ok", default: 1, binding: { command: "dialog-close" }}};
if (threading and threading != "SingleThreaded") {
gui.popupTip("Threading model must be SingleThreaded (or not defined) for snapshots to work.", 600, button);
} elsif (success) {
gui.popupTip("Screenshot written to '" ~ path ~ "'", 2);
} else {
gui.popupTip("Error writing screenshot '" ~ path ~ "'", 600, button);
}
</script>
</binding>
<mod-shift>

View file

@ -602,6 +602,8 @@ Started September 2000 by David Megginson, david@megginson.com
<view>
<name>Model View</name>
<enabled type="bool"
userarchive="y">true</enabled>
<type>lookat</type>
<config>
<from-model type="bool">false</from-model>