1
0
Fork 0

Adapting to new screen-shot command

Success/error report is now automatically displayed by a listener.
Thanks Gijs!
This commit is contained in:
ThorstenB 2011-06-01 23:47:18 +02:00
parent 5c10b7204b
commit 9077868e27

View file

@ -58,12 +58,7 @@
<command>nasal</command>
<script>
gui.popdown();
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 ~ "'");
fgcommand("screen-capture");
</script>
</binding>
</item>
@ -574,7 +569,7 @@
</binding>
</item>
<item>
<item>
<label>Reload HUD</label>
<binding>
<command>reinit</command>