From: Melchior F. <mf...@fl...> - 2008-04-30 14:42:43
|
Update of /var/cvs/FlightGear-0.9/data In directory baron:/tmp/cvs-serv2324 Modified Files: keyboard.xml Log Message: use fgcommand("screen-capture") return value to show error message Index: keyboard.xml =================================================================== RCS file: /var/cvs/FlightGear-0.9/data/keyboard.xml,v retrieving revision 1.110 retrieving revision 1.111 diff -C 2 -r1.110 -r1.111 *** keyboard.xml 26 Apr 2008 13:28:47 -0000 1.110 --- keyboard.xml 26 Apr 2008 22:36:04 -0000 1.111 *************** *** 1106,1115 **** <command>nasal</command> <script> ! fgcommand("screen-capture"); ! var file = getprop("/sim/last-screenshot"); ! if(file == "") ! gui.popupTip("Error writing screenshot"); else ! gui.popupTip("Screenshot written to " ~ file); </script> </binding> --- 1106,1115 ---- <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> |