1
0
Fork 0
fgdata/gui/dialogs/nasal-test.xml

70 lines
1.9 KiB
XML
Raw Normal View History

2020-05-24 18:52:45 +00:00
<?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>
2022-10-13 19:17:50 +00:00
<padding>5</padding>
<text>
<label>Specify .nut file in $FG_ROOT/Nasal</label>
</text>
2020-05-24 18:52:45 +00:00
<group>
<layout>hbox</layout>
2022-10-13 19:17:50 +00:00
<halign>center</halign>
2020-05-24 18:52:45 +00:00
<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>