| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | |
| 3 | <PropertyList> |
| 4 | <name>nasal-test</name> |
| 5 | <layout>vbox</layout> |
| 6 | <color> |
| 7 | <red>0.1</red> |
| 8 | <green>0.3</green> |
| 9 | <blue>0.7</blue> |
| 10 | <alpha>0.9</alpha> |
| 11 | </color> |
| 12 | <group> |
| 13 | <layout>hbox</layout> |
| 14 | <text> |
| 15 | <label>Run Nasal test</label> |
| 16 | </text> |
| 17 | <empty> |
| 18 | <stretch>1</stretch> |
| 19 | </empty> |
| 20 | <button> |
| 21 | <legend>X</legend> |
| 22 | <key>Esc</key> |
| 23 | <pref-width>20</pref-width> |
| 24 | <pref-height>20</pref-height> |
| 25 | <binding> |
| 26 | <command>dialog-close</command> |
| 27 | </binding> |
| 28 | </button> |
| 29 | </group> |
| 30 | <hrule /> |
| 31 | <group> |
| 32 | <layout>vbox</layout> |
| 33 | <valign>top</valign> |
| 34 | <padding>5</padding> |
| 35 | <text> |
| 36 | <label>Specify .nut file in $FG_ROOT/Nasal</label> |
| 37 | </text> |
| 38 | <group> |
| 39 | <layout>hbox</layout> |
| 40 | <halign>center</halign> |
| 41 | <input> |
| 42 | <pref-width>100</pref-width> |
| 43 | <halign>left</halign> |
| 44 | <property>/_debug/nas/test/filename</property> |
| 45 | <label>.nut</label> |
| 46 | <binding> |
| 47 | <command>dialog-apply</command> |
| 48 | </binding> |
| 49 | <live type="bool">true</live> |
| 50 | </input> |
| 51 | </group> |
| 52 | <button> |
| 53 | <legend>Run test</legend> |
| 54 | <binding> |
| 55 | <command>nasal</command> |
| 56 | <script> |
| 57 | var file = getprop("/sim/fg-root")~"/Nasal/" |
| 58 | ~getprop("/_debug/nas/test/filename")~".nut"; |
| 59 | print(file); |
| 60 | fgcommand("nasal-test", props.Node.new({"path": file})); |
| 61 | </script> |
| 62 | </binding> |
| 63 | </button> |
| 64 | </group> |
| 65 | </PropertyList> |