1
0
Fork 0
fgdata/gui/dialogs/nasal-test.xml
2022-10-13 21:17:50 +02:00

69 lines
1.9 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<PropertyList>
<name>nasal-test</name>
<layout>vbox</layout>
<color>
<red>0.1</red>
<green>0.3</green>
<blue>0.7</blue>
<alpha>0.9</alpha>
</color>
<group>
<layout>hbox</layout>
<empty>
<stretch>1</stretch>
</empty>
<text>
<label>Run Nasal test</label>
</text>
<empty>
<stretch>1</stretch>
</empty>
<button>
<pref-width>16</pref-width>
<pref-height>16</pref-height>
<legend>X</legend>
<keynum>27</keynum>
<border>2</border>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
<hrule />
<group>
<layout>vbox</layout>
<valign>top</valign>
<padding>5</padding>
<text>
<label>Specify .nut file in $FG_ROOT/Nasal</label>
</text>
<group>
<layout>hbox</layout>
<halign>center</halign>
<input>
<pref-width>100</pref-width>
<halign>left</halign>
<property>/_debug/nas/test/filename</property>
<label>.nut</label>
<binding>
<command>dialog-apply</command>
</binding>
<live type="bool">true</live>
</input>
</group>
<button>
<legend>Run test</legend>
<binding>
<command>nasal</command>
<script>
var file = getprop("/sim/fg-root")~"/Nasal/"
~getprop("/_debug/nas/test/filename")~".nut";
print(file);
fgcommand("nasal-test", props.Node.new({"path": file}));
</script>
</binding>
</button>
</group>
</PropertyList>