ec130-config-dialog.xml 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133
  1. <?xml version="1.0"?>
  2. <!-- Eurocopter EC 130 Helicopter by Heiko Schulz, Michael Habarta
  3. This file is part of FlightGear, the free flight simulator
  4. http://www.flightgear.org/
  5. Copyright (C) 2009 Heiko Schulz, Heiko.H.Schulz@gmx.net
  6. (C) 2016 Michael Habarta, mhabarta@freenet.de
  7. This program is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU General Public License as
  9. published by the Free Software Foundation; either version 2 of the
  10. License, or (at your option) any later version.
  11. This program is distributed in the hope that it will be useful, but
  12. WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. General Public License for more details.
  15. -->
  16. <PropertyList>
  17. <!--
  18. ATTENTION:
  19. There are dependencies between the dialog definition and nasal code
  20. regarding the listbox with available liveries. So if the dialog definition
  21. is modified, make sure to check for the correct property names used in the
  22. nasal code.
  23. -->
  24. <name>Livery_Payload</name>
  25. <layout>vbox</layout>
  26. <resizable>false</resizable>
  27. <modal>false</modal>
  28. <draggable>true</draggable>
  29. <default-padding>3</default-padding>
  30. <nasal>
  31. <open>
  32. <!-- flag for open dialog -->
  33. setprop("/sim/model/ec130/config_dialog_active",1);
  34. <!-- init interior options -->
  35. var init = func {
  36. var p = getprop("/sim/model/ec130/interior_passengers");
  37. setprop("/sim/model/ec130/interior_passengers_flag_0",0);
  38. setprop("/sim/model/ec130/interior_passengers_flag_1",0);
  39. setprop("/sim/model/ec130/interior_passengers_flag_2",0);
  40. if ( p == 5 ) { setprop("/sim/model/ec130/interior_passengers_flag_0",1); }
  41. if ( p == 6 ) { setprop("/sim/model/ec130/interior_passengers_flag_1",1); }
  42. if ( p == 4 ) {
  43. setprop("/sim/model/ec130/interior_passengers_flag_2",1);
  44. }
  45. <!-- if Pilot is not there Co-pilot must (i.e. his controls too) -->
  46. if ( getprop("/sim/weight[0]/weight-lb") &lt; 40 ) {
  47. if ( getprop("/sim/model/ec130/copilot_controls") == 0 ) {
  48. setprop("/sim/model/ec130/copilot_controls",1);
  49. screen.log.write("One Pilot must be available !!!");
  50. }
  51. }
  52. <!-- available liveries / dialog title -->
  53. if ( getprop("/sim/model/variant") == "1" ) {
  54. dir = resolvepath("Aircraft/ec130/Models/Liveries_ec130b4") ~ "/";
  55. setprop("/sim/gui/dialogs/ec130/config/dialog/group/text/label", " EC130-B4 Configuration (Alt-o)");
  56. } else {
  57. dir = resolvepath("Aircraft/ec130/Models/Liveries_ec130t2") ~ "/";
  58. setprop("/sim/gui/dialogs/ec130/config/dialog/group/text/label", " H130 Configuration (Alt-o)");
  59. }
  60. data = [];
  61. var files = directory(dir);
  62. if (size(files)) {
  63. var i = 0;
  64. foreach (var file; files) {
  65. if (substr(file, -4) != ".xml") {
  66. continue;
  67. }
  68. var n = io.read_properties(dir ~ file);
  69. var name = n.getNode("sim/model/livery/name", 1).getValue();
  70. var index = n.getNode("sim/model/livery/index", 1).getValue();
  71. if (name == nil or index == nil) {
  72. continue;
  73. }
  74. append(data, [name, index]);
  75. i+=1;
  76. }
  77. data = sort(data, func(a, b) num(a[1]) == nil or num(b[1]) == nil
  78. ? cmp(a[1], b[1]) : a[1] - b[1]);
  79. }
  80. forindex (var i; data) {
  81. setprop("/sim/gui/dialogs/ec130/config/dialog/group[1]/group/group[1]/list/value[" ~ i ~ "]",data[i][0]);
  82. }
  83. <!-- set seat weights and views -->
  84. ec130.aircraft_init();
  85. ec130.set_searchview();
  86. }
  87. init();
  88. </open>
  89. <close># just kept for educational purposes :-)</close>
  90. </nasal>
  91. <!-- Title with Esc knob for closing -->
  92. <group>
  93. <layout>hbox</layout>
  94. <empty><stretch>1</stretch></empty>
  95. <!-- title is set through nasal script above -->
  96. <text>
  97. <label>x</label>
  98. </text>
  99. <empty><stretch>true</stretch></empty>
  100. <button>
  101. <legend></legend>
  102. <keynum>27</keynum>
  103. <pref-width>16</pref-width>
  104. <pref-height>16</pref-height>
  105. <binding>
  106. <command>nasal</command>
  107. <script>
  108. <!-- flag for open dialog -->
  109. setprop("/sim/model/ec130/config_dialog_active",0);
  110. ec130.config_dialog.toggle();
  111. </script>
  112. </binding>
  113. </button>
  114. </group>
  115. <hrule/>
  116. <!-- top level group start -->
  117. <group>
  118. <layout>hbox</layout>
  119. <default-padding>0</default-padding>
  120. <halign>left</halign>
  121. <!-- 1st column start -->
  122. <group>
  123. <layout>vbox</layout>
  124. <default-padding>4</default-padding>
  125. <halign>left</halign>
  126. <group>
  127. <layout>table</layout>
  128. <default-padding>1</default-padding>
  129. <halign>left</halign>
  130. <text>
  131. <row>0</row>
  132. <col>1</col>
  133. <label> Livery</label>
  134. <halign>left</halign>
  135. </text>
  136. </group>
  137. <group>
  138. <layout>table</layout>
  139. <default-padding>4</default-padding>
  140. <halign>left</halign>
  141. <!-- only to get a gap to left border -->
  142. <text>
  143. <row>0</row>
  144. <col>0</col>
  145. <label> </label>
  146. <halign>left</halign>
  147. </text>
  148. <list>
  149. <row>0</row>
  150. <col>1</col>
  151. <name>livery-combo</name>
  152. <property>/sim/model/livery/name</property>
  153. <editable>false</editable>
  154. <pref-height>110</pref-height>
  155. <pref-width>280</pref-width>
  156. <halign>fill</halign>
  157. <!-- this is a place holder for the list only,
  158. list is filled by Nasal-open script above
  159. -->
  160. <value>x</value>
  161. <binding>
  162. <command>dialog-apply</command>
  163. <object-name>livery-combo</object-name>
  164. </binding>
  165. <binding>
  166. <command>nasal</command>
  167. <script>
  168. aircraft.livery.select(getprop("/sim/model/livery/name"));
  169. init();
  170. var trak = getprop("/sim/model/ec130/searchlight_a800");
  171. if ( !trak ) {
  172. var h=getprop("/sim/model/searchlight/sx16/heading-default-deg");
  173. } else {
  174. var h=getprop("/sim/model/searchlight/a800/heading-default-deg");
  175. }
  176. if ( getprop("/sim/model/searchlight/active") ) {
  177. if ( trak ) {
  178. h=h+180;
  179. }
  180. }
  181. setprop("/sim/model/searchlight/heading-deg", h);
  182. if ( !trak ) {
  183. setprop("/sim/model/searchlight/elevation-deg", getprop("/sim/model/searchlight/sx16/elevation-default-deg"));
  184. } else {
  185. setprop("/sim/model/searchlight/elevation-deg", getprop("/sim/model/searchlight/a800/elevation-default-deg"));
  186. }
  187. ec130.slight_init();
  188. ec130.slight_reset();
  189. ec130.set_searchview();
  190. </script>
  191. </binding>
  192. </list>
  193. </group>
  194. <group>
  195. <layout>table</layout>
  196. <default-padding>1</default-padding>
  197. <halign>left</halign>
  198. <!-- only to get a gap to left border -->
  199. <text>
  200. <row>0</row>
  201. <col>0</col>
  202. <label> </label>
  203. <halign>left</halign>
  204. </text>
  205. <!-- name of currently selected livery -->
  206. <text>
  207. <row>0</row>
  208. <col>1</col>
  209. <property>/sim/model/livery/name</property>
  210. <label>xxxxxxxxxxxxxxxxxxxxxxxx</label>
  211. <format>%-24s</format>
  212. <halign>right</halign>
  213. <live>true</live>
  214. </text>
  215. <button>
  216. <row>0</row>
  217. <col>3</col>
  218. <legend> ? </legend>
  219. <binding>
  220. <command>nasal</command>
  221. <script>
  222. ec130.config_dialog.toggle();
  223. ec130.model_info_dialog.toggle();
  224. </script>
  225. </binding>
  226. <halign>right</halign>
  227. </button>
  228. <!-- empty line before next -->
  229. <text>
  230. <row>1</row>
  231. <col>0</col>
  232. <label> </label>
  233. <halign>left</halign>
  234. </text>
  235. </group>
  236. <hrule/>
  237. <group>
  238. <layout>table</layout>
  239. <default-padding>4</default-padding>
  240. <halign>left</halign>
  241. <!-- only to get a gap to left border -->
  242. <text>
  243. <row>0</row>
  244. <col>0</col>
  245. <label> </label>
  246. <halign>left</halign>
  247. </text>
  248. <text>
  249. <row>0</row>
  250. <col>1</col>
  251. <label>Interior</label>
  252. <halign>left</halign>
  253. </text>
  254. <text>
  255. <row>1</row>
  256. <col>1</col>
  257. <label>======</label>
  258. <halign>left</halign>
  259. </text>
  260. <radio>
  261. <row>2</row>
  262. <col>1</col>
  263. <halign>left</halign>
  264. <label> 5 Passengers (standard)</label>
  265. <property>/sim/model/ec130/interior_passengers_flag_0</property>
  266. <live>true</live>
  267. <binding>
  268. <command>dialog-apply</command>
  269. </binding>
  270. <binding>
  271. <command>nasal</command>
  272. <script>
  273. setprop("/sim/model/ec130/interior_passengers",5);
  274. <!--setprop("/sim/model/ec130/interior_passengers_flag_0",0); -->
  275. setprop("/sim/model/ec130/interior_passengers_flag_1",0);
  276. setprop("/sim/model/ec130/interior_passengers_flag_2",0);
  277. ec130.set_seats();
  278. ec130.set_luggage_all();
  279. </script>
  280. </binding>
  281. </radio>
  282. <radio>
  283. <row>3</row>
  284. <col>1</col>
  285. <halign>left</halign>
  286. <label> 6 Passengers (medium density)</label>
  287. <property>/sim/model/ec130/interior_passengers_flag_1</property>
  288. <live>true</live>
  289. <binding>
  290. <command>dialog-apply</command>
  291. </binding>
  292. <binding>
  293. <command>nasal</command>
  294. <script>
  295. setprop("/sim/model/ec130/interior_passengers",6);
  296. setprop("/sim/model/ec130/interior_passengers_flag_0",0);
  297. <!--setprop("/sim/model/ec130/interior_passengers_flag_1",0); -->
  298. setprop("/sim/model/ec130/interior_passengers_flag_2",0);
  299. ec130.set_seats();
  300. ec130.set_luggage_all();
  301. </script>
  302. </binding>
  303. </radio>
  304. <radio>
  305. <row>4</row>
  306. <col>1</col>
  307. <halign>left</halign>
  308. <label> Rescue Missions (EMS)</label>
  309. <property>/sim/model/ec130/interior_passengers_flag_2</property>
  310. <live>true</live>
  311. <binding>
  312. <command>dialog-apply</command>
  313. </binding>
  314. <binding>
  315. <command>nasal</command>
  316. <script>
  317. setprop("/sim/model/ec130/interior_passengers",4);
  318. setprop("/sim/model/ec130/interior_passengers_flag_0",0);
  319. setprop("/sim/model/ec130/interior_passengers_flag_1",0);
  320. <!--setprop("/sim/model/ec130/interior_passengers_flag_2",0); -->
  321. ec130.set_seats();
  322. ec130.set_luggage_all();
  323. </script>
  324. </binding>
  325. </radio>
  326. </group>
  327. <hrule/>
  328. <group>
  329. <layout>table</layout>
  330. <default-padding>3</default-padding>
  331. <halign>left</halign>
  332. <!-- only to get a gap to left border -->
  333. <text>
  334. <row>0</row>
  335. <col>0</col>
  336. <label> </label>
  337. <halign>left</halign>
  338. </text>
  339. <text>
  340. <row>0</row>
  341. <col>1</col>
  342. <label>EC130 Views</label>
  343. <halign>left</halign>
  344. </text>
  345. <text>
  346. <row>1</row>
  347. <col>1</col>
  348. <label>===========</label>
  349. <halign>left</halign>
  350. </text>
  351. <!-- EC130 specific views -->
  352. <!-- 101 -->
  353. <checkbox>
  354. <row>2</row>
  355. <col>1</col>
  356. <halign>left</halign>
  357. <label> Pilot</label>
  358. <property>/sim/view[0]/enabled</property>
  359. <live>true</live>
  360. <binding>
  361. <command>dialog-apply</command>
  362. </binding>
  363. <binding>
  364. <command>nasal</command>
  365. <script>ec130.toggle_view(-1);</script>
  366. </binding>
  367. </checkbox>
  368. <group>
  369. <row>3</row>
  370. <col>1</col>
  371. <layout>hbox</layout>
  372. <default-padding>0</default-padding>
  373. <halign>left</halign>
  374. <!-- 101 -->
  375. <checkbox>
  376. <halign>left</halign>
  377. <label> Co-Pilot (</label>
  378. <property>/sim/view[101]/enabled</property>
  379. <live>true</live>
  380. <binding>
  381. <command>dialog-apply</command>
  382. </binding>
  383. <binding>
  384. <command>nasal</command>
  385. <script>ec130.toggle_view(-101);</script>
  386. </binding>
  387. </checkbox>
  388. <checkbox>
  389. <halign>left</halign>
  390. <label>Co-Pilot Controls)</label>
  391. <property>/sim/model/ec130/copilot_controls</property>
  392. <live>true</live>
  393. <binding>
  394. <command>dialog-apply</command>
  395. </binding>
  396. <binding>
  397. <command>nasal</command>
  398. <script>ec130.toggle_copilot_controls(-1);</script>
  399. </binding>
  400. </checkbox>
  401. </group>
  402. <!-- 102 -->
  403. <checkbox>
  404. <row>4</row>
  405. <col>1</col>
  406. <halign>left</halign>
  407. <label> Front Left Seat (6 Pass. only)</label>
  408. <property>/sim/view[102]/enabled</property>
  409. <live>true</live>
  410. <enable>
  411. <equals>
  412. <property>/sim/model/ec130/interior_passengers</property>
  413. <value>6</value>
  414. </equals>
  415. </enable>
  416. <binding>
  417. <command>dialog-apply</command>
  418. </binding>
  419. <binding>
  420. <command>nasal</command>
  421. <script>ec130.toggle_view(-102);</script>
  422. </binding>
  423. </checkbox>
  424. <!-- 103 -->
  425. <checkbox>
  426. <row>5</row>
  427. <col>1</col>
  428. <halign>left</halign>
  429. <label> Front Right Seat (not in EMS)</label>
  430. <property>/sim/view[103]/enabled</property>
  431. <live>true</live>
  432. <enable>
  433. <not-equals>
  434. <property>/sim/model/ec130/interior_passengers</property>
  435. <value>4</value>
  436. </not-equals>
  437. </enable>
  438. <binding>
  439. <command>dialog-apply</command>
  440. </binding>
  441. <binding>
  442. <command>nasal</command>
  443. <script>ec130.toggle_view(-103);</script>
  444. </binding>
  445. </checkbox>
  446. <!-- 104 -->
  447. <checkbox>
  448. <row>6</row>
  449. <col>1</col>
  450. <halign>left</halign>
  451. <label> Rear Left Seat</label>
  452. <property>/sim/view[104]/enabled</property>
  453. <live>true</live>
  454. <binding>
  455. <command>dialog-apply</command>
  456. </binding>
  457. <binding>
  458. <command>nasal</command>
  459. <script>ec130.toggle_view(-104);</script>
  460. </binding>
  461. </checkbox>
  462. <!-- 105 -->
  463. <checkbox>
  464. <row>7</row>
  465. <col>1</col>
  466. <halign>left</halign>
  467. <label> Rear Mid Left Seat</label>
  468. <property>/sim/view[105]/enabled</property>
  469. <live>true</live>
  470. <binding>
  471. <command>dialog-apply</command>
  472. </binding>
  473. <binding>
  474. <command>nasal</command>
  475. <script>ec130.toggle_view(-105);</script>
  476. </binding>
  477. </checkbox>
  478. <!-- 106 -->
  479. <checkbox>
  480. <row>8</row>
  481. <col>1</col>
  482. <halign>left</halign>
  483. <label> Rear Mid Right Seat</label>
  484. <visible>
  485. <greater-than>
  486. <property>sim/model/ec130/interior_passengers</property>
  487. <value>4</value>
  488. </greater-than>
  489. </visible>
  490. <property>/sim/view[106]/enabled</property>
  491. <live>true</live>
  492. <binding>
  493. <command>dialog-apply</command>
  494. </binding>
  495. <binding>
  496. <command>nasal</command>
  497. <script>ec130.toggle_view(-106);</script>
  498. </binding>
  499. </checkbox>
  500. <!-- 107 Patient -->
  501. <checkbox>
  502. <row>8</row>
  503. <col>1</col>
  504. <halign>left</halign>
  505. <label> Patient</label>
  506. <visible>
  507. <equals>
  508. <property>sim/model/ec130/interior_passengers</property>
  509. <value>4</value>
  510. </equals>
  511. </visible>
  512. <property>/sim/view[107]/enabled</property>
  513. <live>true</live>
  514. <binding>
  515. <command>dialog-apply</command>
  516. </binding>
  517. <binding>
  518. <command>nasal</command>
  519. <script>ec130.toggle_view(-107);</script>
  520. </binding>
  521. </checkbox>
  522. <!-- 108 -->
  523. <checkbox>
  524. <row>9</row>
  525. <col>1</col>
  526. <halign>left</halign>
  527. <label> Rear Right Seat (not in EMS)</label>
  528. <property>/sim/view[108]/enabled</property>
  529. <live>true</live>
  530. <enable>
  531. <not-equals>
  532. <property>/sim/model/ec130/interior_passengers</property>
  533. <value>4</value>
  534. </not-equals>
  535. </enable>
  536. <binding>
  537. <command>dialog-apply</command>
  538. </binding>
  539. <binding>
  540. <command>nasal</command>
  541. <script>ec130.toggle_view(-108);</script>
  542. </binding>
  543. </checkbox>
  544. <text>
  545. <row>10</row>
  546. <col>1</col>
  547. <label> ------------ </label>
  548. <halign>left</halign>
  549. </text>
  550. <!-- 109 -->
  551. <checkbox>
  552. <row>11</row>
  553. <col>1</col>
  554. <halign>left</halign>
  555. <label> Tail Camera</label>
  556. <property>/sim/view[109]/enabled</property>
  557. <live>true</live>
  558. <binding>
  559. <command>dialog-apply</command>
  560. </binding>
  561. </checkbox>
  562. <!-- 110 -->
  563. <checkbox>
  564. <row>12</row>
  565. <col>1</col>
  566. <halign>left</halign>
  567. <label> Rotor Camera</label>
  568. <property>/sim/view[110]/enabled</property>
  569. <live>true</live>
  570. <binding>
  571. <command>dialog-apply</command>
  572. </binding>
  573. </checkbox>
  574. <!-- 111 -->
  575. <checkbox>
  576. <row>13</row>
  577. <col>1</col>
  578. <halign>left</halign>
  579. <label> Searchlight Watch Camera</label>
  580. <property>/sim/view[111]/enabled_flag</property>
  581. <live>true</live>
  582. <enable>
  583. <or>
  584. <property>/sim/model/ec130/searchlight</property>
  585. <property>/sim/model/ec130/searchlight_a800</property>
  586. </or>
  587. </enable>
  588. <binding>
  589. <command>dialog-apply</command>
  590. </binding>
  591. <binding>
  592. <command>nasal</command>
  593. <script>
  594. ec130.set_searchview();
  595. </script>
  596. </binding>
  597. </checkbox>
  598. <!-- 112 -->
  599. <checkbox>
  600. <row>14</row>
  601. <col>1</col>
  602. <halign>left</halign>
  603. <label> Searchlight Follow Camera</label>
  604. <property>/sim/view[112]/enabled_flag</property>
  605. <live>true</live>
  606. <enable>
  607. <or>
  608. <property>/sim/model/ec130/searchlight</property>
  609. <property>/sim/model/ec130/searchlight_a800</property>
  610. </or>
  611. </enable>
  612. <binding>
  613. <command>dialog-apply</command>
  614. </binding>
  615. <binding>
  616. <command>nasal</command>
  617. <script>
  618. ec130.set_searchview();
  619. </script>
  620. </binding>
  621. </checkbox>
  622. </group>
  623. <group>
  624. <stretch>true</stretch>
  625. </group>
  626. </group>
  627. <!-- 1st column end -->
  628. <vrule/>
  629. <!-- 2nd column start -->
  630. <group>
  631. <layout>vbox</layout>
  632. <default-padding>4</default-padding>
  633. <halign>left</halign>
  634. <group>
  635. <layout>table</layout>
  636. <default-padding>4</default-padding>
  637. <halign>left</halign>
  638. <!-- only to get a gap to left border -->
  639. <text>
  640. <row>0</row>
  641. <col>0</col>
  642. <label> </label>
  643. <halign>left</halign>
  644. </text>
  645. <text>
  646. <row>0</row>
  647. <col>1</col>
  648. <label>Fuel </label>
  649. <halign>left</halign>
  650. </text>
  651. <text>
  652. <row>1</row>
  653. <col>1</col>
  654. <label>==== </label>
  655. <halign>left</halign>
  656. </text>
  657. <text>
  658. <row>2</row>
  659. <col>1</col>
  660. <label> Tank </label>
  661. <halign>center</halign>
  662. </text>
  663. <text>
  664. <row>2</row>
  665. <col>2</col>
  666. <label>Pounds</label>
  667. <halign>right</halign>
  668. </text>
  669. <text>
  670. <row>2</row>
  671. <col>3</col>
  672. <label>Gallons</label>
  673. <halign>right</halign>
  674. </text>
  675. <text>
  676. <row>2</row>
  677. <col>4</col>
  678. <label>Fraction</label>
  679. <halign>right</halign>
  680. </text>
  681. <text>
  682. <row>2</row>
  683. <col>5</col>
  684. <label> </label>
  685. <halign>right</halign>
  686. </text>
  687. <!-- only to get a gap to left border -->
  688. <text>
  689. <row>3</row>
  690. <col>0</col>
  691. <label> </label>
  692. <halign>left</halign>
  693. </text>
  694. <slider>
  695. <row>3</row>
  696. <col>1</col>
  697. <property>/consumables/fuel/tank/level-lbs</property>
  698. <min>0</min>
  699. <max>941</max>
  700. <live>true</live>
  701. <binding>
  702. <command>dialog-apply</command>
  703. </binding>
  704. </slider>
  705. <text>
  706. <row>3</row>
  707. <col>2</col>
  708. <property>/consumables/fuel/tank/level-lbs</property>
  709. <label>xxxxxx</label>
  710. <format>%5.0f</format>
  711. <halign>right</halign>
  712. <live>true</live>
  713. </text>
  714. <text>
  715. <row>3</row>
  716. <col>3</col>
  717. <property>/consumables/fuel/tank/level-gal_us</property>
  718. <label>xxxxxx</label>
  719. <format>%5.0f</format>
  720. <halign>right</halign>
  721. <live>true</live>
  722. </text>
  723. <text>
  724. <row>3</row>
  725. <col>4</col>
  726. <property>/consumables/fuel/tank/level-norm</property>
  727. <label>xxxxxx</label>
  728. <format>%.2f</format>
  729. <halign>right</halign>
  730. <live>true</live>
  731. </text>
  732. <!-- empty line before next -->
  733. <text>
  734. <row>8</row>
  735. <col>0</col>
  736. <label> </label>
  737. <halign>left</halign>
  738. </text>
  739. </group>
  740. <hrule/>
  741. <group>
  742. <layout>vbox</layout>
  743. <group>
  744. <layout>table</layout>
  745. <default-padding>4</default-padding>
  746. <halign>left</halign>
  747. <!-- only to get a gap to left border -->
  748. <text>
  749. <row>0</row>
  750. <col>0</col>
  751. <label> </label>
  752. <halign>left</halign>
  753. </text>
  754. <text>
  755. <row>0</row>
  756. <col>1</col>
  757. <label>Weights (empty seat: 30 lbs)</label>
  758. <halign>left</halign>
  759. </text>
  760. <text>
  761. <row>1</row>
  762. <col>1</col>
  763. <label>======</label>
  764. <halign>left</halign>
  765. </text>
  766. </group>
  767. <group>
  768. <!-- weights -->
  769. <layout>table</layout>
  770. <default-padding>4</default-padding>
  771. <halign>left</halign>
  772. <!-- only to get a gap to left border -->
  773. <text>
  774. <row>0</row>
  775. <col>0</col>
  776. <label> </label>
  777. <halign>left</halign>
  778. </text>
  779. <!-- headline -->
  780. <text>
  781. <row>0</row>
  782. <col>1</col>
  783. <label>Location</label>
  784. <halign>left</halign>
  785. </text>
  786. <text>
  787. <row>0</row>
  788. <col>2</col>
  789. <label> </label>
  790. <halign>left</halign>
  791. </text>
  792. <text>
  793. <row>0</row>
  794. <col>3</col>
  795. <label> Pounds </label>
  796. <halign>right</halign>
  797. </text>
  798. <!-- contents -->
  799. <!-- row 1 Pilot -->
  800. <text>
  801. <row>1</row>
  802. <col>1</col>
  803. <property>/sim/weight[0]/name</property>
  804. <label>xxxxxxxxxxxxxxxxx</label>
  805. <halign>left</halign>
  806. </text>
  807. <slider>
  808. <row>1</row>
  809. <col>2</col>
  810. <property>/sim/weight[0]/weight-lb</property>
  811. <min>0</min>
  812. <max>330</max>
  813. <live>true</live>
  814. <binding>
  815. <command>dialog-apply</command>
  816. </binding>
  817. <binding>
  818. <command>nasal</command>
  819. <script>
  820. gui.weightChangeHandler();
  821. ec130.set_seats();
  822. </script>
  823. </binding>
  824. </slider>
  825. <text>
  826. <row>1</row>
  827. <col>3</col>
  828. <property>/sim/weight[0]/weight-lb</property>
  829. <label>xxxxxxxx</label>
  830. <format> %7.0f</format>
  831. <halign>right</halign>
  832. <live>true</live>
  833. </text>
  834. <!-- row 2 Co-Pilot -->
  835. <text>
  836. <row>2</row>
  837. <col>1</col>
  838. <property>/sim/weight[1]/name</property>
  839. <label>xxxxxxxxxxxxx</label>
  840. <halign>left</halign>
  841. </text>
  842. <slider>
  843. <row>2</row>
  844. <col>2</col>
  845. <property>/sim/weight[1]/weight-lb</property>
  846. <min>0</min>
  847. <max>330</max>
  848. <live>true</live>
  849. <binding>
  850. <command>dialog-apply</command>
  851. </binding>
  852. <binding>
  853. <command>nasal</command>
  854. <script>
  855. gui.weightChangeHandler();
  856. ec130.set_seats();
  857. </script>
  858. </binding>
  859. </slider>
  860. <text>
  861. <row>2</row>
  862. <col>3</col>
  863. <property>/sim/weight[1]/weight-lb</property>
  864. <label>xxxxxxxx</label>
  865. <format> %7.0f</format>
  866. <halign>right</halign>
  867. <live>true</live>
  868. </text>
  869. <!-- row 3 Front Left -->
  870. <text>
  871. <row>3</row>
  872. <col>1</col>
  873. <property>/sim/weight[2]/name</property>
  874. <label>xxxxxxxxxxxxx</label>
  875. <halign>left</halign>
  876. <enable>
  877. <equals>
  878. <property>/sim/model/ec130/interior_passengers</property>
  879. <value>6</value>
  880. </equals>
  881. </enable>
  882. </text>
  883. <slider>
  884. <row>3</row>
  885. <col>2</col>
  886. <property>/sim/weight[2]/weight-lb</property>
  887. <min>0</min>
  888. <max>330</max>
  889. <live>true</live>
  890. <enable>
  891. <equals>
  892. <property>/sim/model/ec130/interior_passengers</property>
  893. <value>6</value>
  894. </equals>
  895. </enable>
  896. <binding>
  897. <command>dialog-apply</command>
  898. </binding>
  899. <binding>
  900. <command>nasal</command>
  901. <script>
  902. gui.weightChangeHandler();
  903. ec130.set_seats();
  904. </script>
  905. </binding>
  906. </slider>
  907. <text>
  908. <row>3</row>
  909. <col>3</col>
  910. <property>/sim/weight[2]/weight-lb</property>
  911. <label>xxxxxxxx</label>
  912. <format> %7.0f</format>
  913. <halign>right</halign>
  914. <live>true</live>
  915. <enable>
  916. <equals>
  917. <property>/sim/model/ec130/interior_passengers</property>
  918. <value>6</value>
  919. </equals>
  920. </enable>
  921. </text>
  922. <!-- row 4 Front Right -->
  923. <text>
  924. <row>4</row>
  925. <col>1</col>
  926. <property>/sim/weight[3]/name</property>
  927. <label>xxxxxxxxxxxxx</label>
  928. <halign>left</halign>
  929. <enable>
  930. <not-equals>
  931. <property>/sim/model/ec130/interior_passengers</property>
  932. <value>4</value>
  933. </not-equals>
  934. </enable>
  935. </text>
  936. <slider>
  937. <row>4</row>
  938. <col>2</col>
  939. <property>/sim/weight[3]/weight-lb</property>
  940. <min>0</min>
  941. <max>330</max>
  942. <live>true</live>
  943. <enable>
  944. <not-equals>
  945. <property>/sim/model/ec130/interior_passengers</property>
  946. <value>4</value>
  947. </not-equals>
  948. </enable>
  949. <binding>
  950. <command>dialog-apply</command>
  951. </binding>
  952. <binding>
  953. <command>nasal</command>
  954. <script>
  955. gui.weightChangeHandler();
  956. ec130.set_seats();
  957. </script>
  958. </binding>
  959. </slider>
  960. <text>
  961. <row>4</row>
  962. <col>3</col>
  963. <property>/sim/weight[3]/weight-lb</property>
  964. <label>xxxxxxxx</label>
  965. <format> %7.0f</format>
  966. <halign>right</halign>
  967. <live>true</live>
  968. <enable>
  969. <not-equals>
  970. <property>/sim/model/ec130/interior_passengers</property>
  971. <value>4</value>
  972. </not-equals>
  973. </enable>
  974. </text>
  975. <!-- row 5 Rear Left -->
  976. <text>
  977. <row>5</row>
  978. <col>1</col>
  979. <property>/sim/weight[4]/name</property>
  980. <label>xxxxxxxxxxxxx</label>
  981. <halign>left</halign>
  982. </text>
  983. <slider>
  984. <row>5</row>
  985. <col>2</col>
  986. <property>/sim/weight[4]/weight-lb</property>
  987. <min>0</min>
  988. <max>330</max>
  989. <live>true</live>
  990. <binding>
  991. <command>dialog-apply</command>
  992. </binding>
  993. <binding>
  994. <command>nasal</command>
  995. <script>
  996. gui.weightChangeHandler();
  997. ec130.set_seats();
  998. </script>
  999. </binding>
  1000. </slider>
  1001. <text>
  1002. <row>5</row>
  1003. <col>3</col>
  1004. <property>/sim/weight[4]/weight-lb</property>
  1005. <label>xxxxxxxx</label>
  1006. <format> %7.0f</format>
  1007. <halign>right</halign>
  1008. <live>true</live>
  1009. </text>
  1010. <!-- row 6 Rear Mid Left -->
  1011. <text>
  1012. <row>6</row>
  1013. <col>1</col>
  1014. <property>/sim/weight[5]/name</property>
  1015. <label>xxxxxxxxxxxxx</label>
  1016. <halign>left</halign>
  1017. </text>
  1018. <slider>
  1019. <row>6</row>
  1020. <col>2</col>
  1021. <property>/sim/weight[5]/weight-lb</property>
  1022. <min>0</min>
  1023. <max>330</max>
  1024. <live>true</live>
  1025. <binding>
  1026. <command>dialog-apply</command>
  1027. </binding>
  1028. <binding>
  1029. <command>nasal</command>
  1030. <script>
  1031. gui.weightChangeHandler();
  1032. ec130.set_seats();
  1033. </script>
  1034. </binding>
  1035. </slider>
  1036. <text>
  1037. <row>6</row>
  1038. <col>3</col>
  1039. <property>/sim/weight[5]/weight-lb</property>
  1040. <label>xxxxxxxx</label>
  1041. <format> %7.0f</format>
  1042. <halign>right</halign>
  1043. <live>true</live>
  1044. </text>
  1045. <!-- row 7 Rear Mid Right -->
  1046. <text>
  1047. <row>7</row>
  1048. <col>1</col>
  1049. <live>true</live>
  1050. <property>/sim/weight[6]/name</property>
  1051. <label>xxxxxxxxxxxxx</label>
  1052. <halign>left</halign>
  1053. </text>
  1054. <slider>
  1055. <row>7</row>
  1056. <col>2</col>
  1057. <property>/sim/weight[6]/weight-lb</property>
  1058. <min>0</min>
  1059. <max>330</max>
  1060. <live>true</live>
  1061. <binding>
  1062. <command>dialog-apply</command>
  1063. </binding>
  1064. <binding>
  1065. <command>nasal</command>
  1066. <script>
  1067. gui.weightChangeHandler();
  1068. ec130.set_seats();
  1069. </script>
  1070. </binding>
  1071. </slider>
  1072. <text>
  1073. <row>7</row>
  1074. <col>3</col>
  1075. <property>/sim/weight[6]/weight-lb</property>
  1076. <label>xxxxxxxx</label>
  1077. <format> %7.0f</format>
  1078. <halign>right</halign>
  1079. <live>true</live>
  1080. </text>
  1081. <!-- row 8 Rear Right -->
  1082. <text>
  1083. <row>8</row>
  1084. <col>1</col>
  1085. <property>/sim/weight[7]/name</property>
  1086. <label>xxxxxxxxxxxxx</label>
  1087. <halign>left</halign>
  1088. <enable>
  1089. <not-equals>
  1090. <property>/sim/model/ec130/interior_passengers</property>
  1091. <value>4</value>
  1092. </not-equals>
  1093. </enable>
  1094. </text>
  1095. <slider>
  1096. <row>8</row>
  1097. <col>2</col>
  1098. <property>/sim/weight[7]/weight-lb</property>
  1099. <min>0</min>
  1100. <max>330</max>
  1101. <live>true</live>
  1102. <enable>
  1103. <not-equals>
  1104. <property>/sim/model/ec130/interior_passengers</property>
  1105. <value>4</value>
  1106. </not-equals>
  1107. </enable>
  1108. <binding>
  1109. <command>dialog-apply</command>
  1110. </binding>
  1111. <binding>
  1112. <command>nasal</command>
  1113. <script>
  1114. gui.weightChangeHandler();
  1115. ec130.set_seats();
  1116. </script>
  1117. </binding>
  1118. </slider>
  1119. <text>
  1120. <row>8</row>
  1121. <col>3</col>
  1122. <property>/sim/weight[7]/weight-lb</property>
  1123. <label>xxxxxxxx</label>
  1124. <format> %7.0f</format>
  1125. <halign>right</halign>
  1126. <live>true</live>
  1127. <enable>
  1128. <not-equals>
  1129. <property>/sim/model/ec130/interior_passengers</property>
  1130. <value>4</value>
  1131. </not-equals>
  1132. </enable>
  1133. </text>
  1134. <!-- row 9 Luggage Left-->
  1135. <text>
  1136. <row>9</row>
  1137. <col>1</col>
  1138. <property>/sim/weight[8]/name</property>
  1139. <label>xxxxxxxxxxxxx</label>
  1140. <halign>left</halign>
  1141. </text>
  1142. <slider>
  1143. <row>9</row>
  1144. <col>2</col>
  1145. <property>/sim/weight[8]/weight-lb</property>
  1146. <min>0</min>
  1147. <max>300</max>
  1148. <live>true</live>
  1149. <binding>
  1150. <command>dialog-apply</command>
  1151. </binding>
  1152. <binding>
  1153. <command>nasal</command>
  1154. <script>
  1155. gui.weightChangeHandler();
  1156. ec130.set_luggage(8);
  1157. </script>
  1158. </binding>
  1159. </slider>
  1160. <text>
  1161. <row>9</row>
  1162. <col>3</col>
  1163. <property>/sim/weight[8]/weight-lb</property>
  1164. <label>xxxxxxxx</label>
  1165. <format> %7.0f</format>
  1166. <halign>right</halign>
  1167. <live>true</live>
  1168. </text>
  1169. <!-- row 10 Luggage Right -->
  1170. <text>
  1171. <row>10</row>
  1172. <col>1</col>
  1173. <property>/sim/weight[9]/name</property>
  1174. <label>xxxxxxxxxxxxx</label>
  1175. <halign>left</halign>
  1176. </text>
  1177. <slider>
  1178. <row>10</row>
  1179. <col>2</col>
  1180. <property>/sim/weight[9]/weight-lb</property>
  1181. <min>0</min>
  1182. <max>300</max>
  1183. <live>true</live>
  1184. <binding>
  1185. <command>dialog-apply</command>
  1186. </binding>
  1187. <binding>
  1188. <command>nasal</command>
  1189. <script>
  1190. gui.weightChangeHandler();
  1191. ec130.set_luggage(9);
  1192. </script>
  1193. </binding>
  1194. </slider>
  1195. <text>
  1196. <row>10</row>
  1197. <col>3</col>
  1198. <property>/sim/weight[9]/weight-lb</property>
  1199. <label>xxxxxxxx</label>
  1200. <format> %7.0f</format>
  1201. <halign>right</halign>
  1202. <live>true</live>
  1203. </text>
  1204. <!-- row 11 Luggage Back -->
  1205. <text>
  1206. <row>11</row>
  1207. <col>1</col>
  1208. <property>/sim/weight[10]/name</property>
  1209. <label>xxxxxxxxxxxxx</label>
  1210. <halign>left</halign>
  1211. </text>
  1212. <slider>
  1213. <row>11</row>
  1214. <col>2</col>
  1215. <property>/sim/weight[10]/weight-lb</property>
  1216. <min>0</min>
  1217. <max>176</max>
  1218. <live>true</live>
  1219. <binding>
  1220. <command>dialog-apply</command>
  1221. </binding>
  1222. <binding>
  1223. <command>nasal</command>
  1224. <script>
  1225. gui.weightChangeHandler();
  1226. ec130.set_luggage(10);
  1227. </script>
  1228. </binding>
  1229. </slider>
  1230. <text>
  1231. <row>11</row>
  1232. <col>3</col>
  1233. <property>/sim/weight[10]/weight-lb</property>
  1234. <label>xxxxxxxx</label>
  1235. <format> %7.0f</format>
  1236. <halign>right</halign>
  1237. <live>true</live>
  1238. </text>
  1239. <!-- row 12 Basket Left -->
  1240. <text>
  1241. <row>12</row>
  1242. <col>1</col>
  1243. <property>/sim/weight[11]/name</property>
  1244. <label>xxxxxxxxxxxxx</label>
  1245. <halign>left</halign>
  1246. <enable>
  1247. <property>/sim/model/ec130/basket_left</property>
  1248. </enable>
  1249. </text>
  1250. <slider>
  1251. <row>12</row>
  1252. <col>2</col>
  1253. <property>/sim/weight[11]/weight-lb</property>
  1254. <min>0</min>
  1255. <max>300</max>
  1256. <live>true</live>
  1257. <enable>
  1258. <property>/sim/model/ec130/basket_left</property>
  1259. </enable>
  1260. <binding>
  1261. <command>dialog-apply</command>
  1262. </binding>
  1263. <binding>
  1264. <command>nasal</command>
  1265. <script>
  1266. gui.weightChangeHandler();
  1267. ec130.set_luggage(11);
  1268. </script>
  1269. </binding>
  1270. </slider>
  1271. <text>
  1272. <row>12</row>
  1273. <col>3</col>
  1274. <property>/sim/weight[11]/weight-lb</property>
  1275. <label>xxxxxxxx</label>
  1276. <format> %7.0f</format>
  1277. <halign>right</halign>
  1278. <live>true</live>
  1279. <enable>
  1280. <property>/sim/model/ec130/basket_left</property>
  1281. </enable>
  1282. </text>
  1283. <!-- row 13 Basket Right -->
  1284. <text>
  1285. <row>13</row>
  1286. <col>1</col>
  1287. <property>/sim/weight[12]/name</property>
  1288. <label>xxxxxxxxxxxxx</label>
  1289. <halign>left</halign>
  1290. <enable>
  1291. <property>/sim/model/ec130/basket_right</property>
  1292. </enable>
  1293. </text>
  1294. <slider>
  1295. <row>13</row>
  1296. <col>2</col>
  1297. <property>/sim/weight[12]/weight-lb</property>
  1298. <min>0</min>
  1299. <max>300</max>
  1300. <live>true</live>
  1301. <enable>
  1302. <property>/sim/model/ec130/basket_right</property>
  1303. </enable>
  1304. <binding>
  1305. <command>dialog-apply</command>
  1306. </binding>
  1307. <binding>
  1308. <command>nasal</command>
  1309. <script>
  1310. gui.weightChangeHandler();
  1311. ec130.set_luggage(12);
  1312. </script>
  1313. </binding>
  1314. </slider>
  1315. <text>
  1316. <row>13</row>
  1317. <col>3</col>
  1318. <property>/sim/weight[12]/weight-lb</property>
  1319. <label>xxxxxxxx</label>
  1320. <format> %7.0f</format>
  1321. <halign>right</halign>
  1322. <live>true</live>
  1323. <enable>
  1324. <property>/sim/model/ec130/basket_right</property>
  1325. </enable>
  1326. </text>
  1327. <!-- row 14 Equipment -->
  1328. <text>
  1329. <row>14</row>
  1330. <col>1</col>
  1331. <property>/sim/weight[13]/name</property>
  1332. <label>xxxxxxxxxxxxx</label>
  1333. <halign>left</halign>
  1334. <enable>
  1335. <equals>
  1336. <property>/sim/model/ec130/interior_passengers</property>
  1337. <value>99</value>
  1338. </equals>
  1339. </enable>
  1340. </text>
  1341. <slider>
  1342. <row>14</row>
  1343. <col>2</col>
  1344. <property>/sim/weight[13]/weight-lb</property>
  1345. <min>0</min>
  1346. <max>300</max>
  1347. <live>true</live>
  1348. <!-- disable always -->
  1349. <enable>
  1350. <equals>
  1351. <property>/sim/model/ec130/interior_passengers</property>
  1352. <value>99</value>
  1353. </equals>
  1354. </enable>
  1355. <binding>
  1356. <command>dialog-apply</command>
  1357. </binding>
  1358. <binding>
  1359. <command>nasal</command>
  1360. <script>gui.weightChangeHandler();</script>
  1361. </binding>
  1362. </slider>
  1363. <text>
  1364. <row>14</row>
  1365. <col>3</col>
  1366. <property>/sim/weight[13]/weight-lb</property>
  1367. <label>xxxxxxxx</label>
  1368. <format> %7.0f</format>
  1369. <halign>right</halign>
  1370. <live>true</live>
  1371. <enable>
  1372. <equals>
  1373. <property>/sim/model/ec130/interior_passengers</property>
  1374. <value>99</value>
  1375. </equals>
  1376. </enable>
  1377. </text>
  1378. <!-- row 15 -->
  1379. <text>
  1380. <row>15</row>
  1381. <col>1</col>
  1382. <label> </label>
  1383. <halign>left</halign>
  1384. </text>
  1385. <text>
  1386. <row>15</row>
  1387. <col>2</col>
  1388. <label> </label>
  1389. <halign>left</halign>
  1390. </text>
  1391. <text>
  1392. <row>15</row>
  1393. <col>3</col>
  1394. <label> --------</label>
  1395. <halign>left</halign>
  1396. </text>
  1397. <!-- row 16 -->
  1398. <text>
  1399. <row>16</row>
  1400. <col>1</col>
  1401. <label>Gross Weight:</label>
  1402. <halign>left</halign>
  1403. </text>
  1404. <text>
  1405. <row>16</row>
  1406. <col>2</col>
  1407. <label></label>
  1408. <halign>left</halign>
  1409. </text>
  1410. <text>
  1411. <row>16</row>
  1412. <col>3</col>
  1413. <property>/yasim/gross-weight-lbs</property>
  1414. <label>xxxxxx</label>
  1415. <format> %7.0f</format>
  1416. <halign>left</halign>
  1417. <live>true</live>
  1418. </text>
  1419. <text>
  1420. <row>17</row>
  1421. <col>3</col>
  1422. <property>/limits/mass-and-balance/maximum-takeoff-mass-lbs</property>
  1423. <label>xxxxxxxxxx</label>
  1424. <format>(max.%4s)</format>
  1425. <halign>left</halign>
  1426. </text>
  1427. </group>
  1428. </group>
  1429. <group>
  1430. <stretch>true</stretch>
  1431. </group>
  1432. </group>
  1433. <!-- 2nd column end -->
  1434. <vrule/>
  1435. <!-- 3rd column start -->
  1436. <group>
  1437. <layout>vbox</layout>
  1438. <default-padding>4</default-padding>
  1439. <halign>left</halign>
  1440. <group>
  1441. <layout>table</layout>
  1442. <default-padding>4</default-padding>
  1443. <halign>left</halign>
  1444. <!-- only to get a gap to left border -->
  1445. <text>
  1446. <row>0</row>
  1447. <col>0</col>
  1448. <label> </label>
  1449. <halign>left</halign>
  1450. </text>
  1451. <text>
  1452. <row>0</row>
  1453. <col>1</col>
  1454. <label>Equipment (combinable)</label>
  1455. <halign>left</halign>
  1456. </text>
  1457. <text>
  1458. <row>1</row>
  1459. <col>1</col>
  1460. <label>===================</label>
  1461. <halign>left</halign>
  1462. </text>
  1463. <checkbox>
  1464. <row>2</row>
  1465. <col>1</col>
  1466. <halign>left</halign>
  1467. <label> Wire-Cutter</label>
  1468. <property>/sim/model/ec130/wirecutter</property>
  1469. <live>true</live>
  1470. <binding>
  1471. <command>dialog-apply</command>
  1472. </binding>
  1473. <binding>
  1474. <command>nasal</command>
  1475. <script>ec130.external_weights()</script>
  1476. </binding>
  1477. </checkbox>
  1478. <checkbox>
  1479. <row>3</row>
  1480. <col>1</col>
  1481. <halign>left</halign>
  1482. <label> Mirror</label>
  1483. <property>/sim/model/ec130/mirror</property>
  1484. <live>true</live>
  1485. <binding>
  1486. <command>dialog-apply</command>
  1487. </binding>
  1488. <binding>
  1489. <command>nasal</command>
  1490. <script>ec130.external_weights()</script>
  1491. </binding>
  1492. </checkbox>
  1493. <checkbox>
  1494. <row>4</row>
  1495. <col>1</col>
  1496. <halign>left</halign>
  1497. <label> FLIR</label>
  1498. <property>/sim/model/ec130/FLIR</property>
  1499. <live>true</live>
  1500. <binding>
  1501. <command>dialog-apply</command>
  1502. </binding>
  1503. <binding>
  1504. <command>nasal</command>
  1505. <script>ec130.external_weights()</script>
  1506. </binding>
  1507. </checkbox>
  1508. <checkbox>
  1509. <row>5</row>
  1510. <col>1</col>
  1511. <halign>left</halign>
  1512. <label> Searchlight A800</label>
  1513. <property>/sim/model/ec130/searchlight_a800</property>
  1514. <live>true</live>
  1515. <binding>
  1516. <command>dialog-apply</command>
  1517. </binding>
  1518. <binding>
  1519. <command>nasal</command>
  1520. <script>
  1521. setprop("/sim/model/ec130/searchlight",0);
  1522. setprop("/sim/model/ec130/searchlight_filter",0);
  1523. var h=getprop("/sim/model/searchlight/a800/heading-default-deg");
  1524. if ( getprop("/sim/model/searchlight/active") ) {
  1525. h=h+180;
  1526. }
  1527. setprop("/sim/model/searchlight/heading-deg", h);
  1528. setprop("/sim/model/searchlight/elevation-deg", getprop("/sim/model/searchlight/a800/elevation-default-deg"));
  1529. ec130.slight_init();
  1530. ec130.slight_reset();
  1531. ec130.set_searchview();
  1532. ec130.external_weights();
  1533. </script>
  1534. </binding>
  1535. </checkbox>
  1536. <checkbox>
  1537. <row>6</row>
  1538. <col>1</col>
  1539. <halign>left</halign>
  1540. <label> Strobe Light Stabilizer</label>
  1541. <property>/sim/model/ec130/stabi_strobe</property>
  1542. <live>true</live>
  1543. <binding>
  1544. <command>dialog-apply</command>
  1545. </binding>
  1546. <!--
  1547. <binding>
  1548. <command>nasal</command>
  1549. <script>ec130.external_weights()</script>
  1550. </binding>
  1551. -->
  1552. </checkbox>
  1553. <checkbox>
  1554. <row>7</row>
  1555. <col>1</col>
  1556. <halign>left</halign>
  1557. <label> Strobe Light Gear</label>
  1558. <property>/sim/model/ec130/gear_strobe</property>
  1559. <live>true</live>
  1560. <binding>
  1561. <command>dialog-apply</command>
  1562. </binding>
  1563. <binding>
  1564. <command>nasal</command>
  1565. <script>ec130.external_weights()</script>
  1566. </binding>
  1567. </checkbox>
  1568. <checkbox>
  1569. <row>8</row>
  1570. <col>1</col>
  1571. <halign>left</halign>
  1572. <label> Gear Landing Lights</label>
  1573. <property>/sim/model/ec130/gear_light</property>
  1574. <live>true</live>
  1575. <binding>
  1576. <command>dialog-apply</command>
  1577. </binding>
  1578. <binding>
  1579. <command>nasal</command>
  1580. <script>ec130.external_weights()</script>
  1581. </binding>
  1582. </checkbox>
  1583. <checkbox>
  1584. <row>9</row>
  1585. <col>1</col>
  1586. <halign>left</halign>
  1587. <label> Cargo Hook</label>
  1588. <property>/sim/model/ec130/hoist</property>
  1589. <live>true</live>
  1590. <binding>
  1591. <command>dialog-apply</command>
  1592. </binding>
  1593. <binding>
  1594. <command>nasal</command>
  1595. <script>ec130.external_weights()</script>
  1596. </binding>
  1597. </checkbox>
  1598. <text>
  1599. <row>10</row>
  1600. <col>1</col>
  1601. <label> ------------ </label>
  1602. <halign>left</halign>
  1603. </text>
  1604. <checkbox>
  1605. <row>11</row>
  1606. <col>1</col>
  1607. <halign>left</halign>
  1608. <label> GSDI (Alt-g)</label>
  1609. <property>/sim/model/ec130/show_gsdi</property>
  1610. <live>true</live>
  1611. <binding>
  1612. <command>dialog-apply</command>
  1613. </binding>
  1614. <binding>
  1615. <command>nasal</command>
  1616. <script>ec130.external_weights()</script>
  1617. </binding>
  1618. </checkbox>
  1619. <!-- empty line before next -->
  1620. <text>
  1621. <row>12</row>
  1622. <col>0</col>
  1623. <label> </label>
  1624. <halign>left</halign>
  1625. </text>
  1626. </group>
  1627. <hrule/>
  1628. <group>
  1629. <layout>table</layout>
  1630. <default-padding>4</default-padding>
  1631. <halign>left</halign>
  1632. <!-- only to get a gap to left border -->
  1633. <text>
  1634. <row>0</row>
  1635. <col>0</col>
  1636. <label> </label>
  1637. <halign>left</halign>
  1638. </text>
  1639. <text>
  1640. <row>0</row>
  1641. <col>1</col>
  1642. <label>Equipment (mutually exclusive)</label>
  1643. <halign>right</halign>
  1644. </text>
  1645. <text>
  1646. <row>1</row>
  1647. <col>1</col>
  1648. <label>=========================</label>
  1649. <halign>right</halign>
  1650. </text>
  1651. <checkbox>
  1652. <row>2</row>
  1653. <col>1</col>
  1654. <halign>left</halign>
  1655. <label> Basket (left)</label>
  1656. <property>/sim/model/ec130/basket_left</property>
  1657. <live>true</live>
  1658. <binding>
  1659. <command>dialog-apply</command>
  1660. </binding>
  1661. <binding>
  1662. <command>nasal</command>
  1663. <script>
  1664. if ( getprop("/sim/model/ec130/basket_left") ) {
  1665. ec130.floats_reset();
  1666. setprop("/sim/model/ec130/luggage_wide",0);
  1667. } else {
  1668. setprop("/sim/weight[11]/weight-lb",0);
  1669. }
  1670. ec130.set_luggage_all();
  1671. ec130.external_weights();
  1672. </script>
  1673. </binding>
  1674. </checkbox>
  1675. <checkbox>
  1676. <row>3</row>
  1677. <col>1</col>
  1678. <halign>left</halign>
  1679. <label> Basket (right)</label>
  1680. <property>/sim/model/ec130/basket_right</property>
  1681. <live>true</live>
  1682. <binding>
  1683. <command>dialog-apply</command>
  1684. </binding>
  1685. <binding>
  1686. <command>nasal</command>
  1687. <script>
  1688. if ( getprop("/sim/model/ec130/basket_right") ) {
  1689. setprop("/sim/model/ec130/luggage_wide",0);
  1690. setprop("/sim/model/ec130/searchlight",0);
  1691. setprop("/sim/model/ec130/searchlight_filter",0);
  1692. ec130.floats_reset();
  1693. ec130.set_searchview();
  1694. setprop("sim/model/ec130/doors/passengerr/position-norm",0);
  1695. } else {
  1696. setprop("/sim/weight[12]/weight-lb",0);
  1697. }
  1698. ec130.set_luggage_all();
  1699. ec130.external_weights();
  1700. </script>
  1701. </binding>
  1702. </checkbox>
  1703. <checkbox>
  1704. <row>4</row>
  1705. <col>1</col>
  1706. <halign>left</halign>
  1707. <label> Wide Luggage Boxes</label>
  1708. <property>/sim/model/ec130/luggage_wide</property>
  1709. <live>true</live>
  1710. <binding>
  1711. <command>dialog-apply</command>
  1712. </binding>
  1713. <binding>
  1714. <command>nasal</command>
  1715. <script>
  1716. if ( getprop("/sim/model/ec130/luggage_wide") ) {
  1717. setprop("/sim/model/ec130/searchlight",0);
  1718. setprop("/sim/model/ec130/searchlight_filter",0);
  1719. ec130.set_searchview();
  1720. setprop("/sim/model/ec130/basket_left",0);
  1721. setprop("/sim/model/ec130/basket_right",0);
  1722. }
  1723. ec130.set_luggage_all();
  1724. ec130.external_weights();
  1725. </script>
  1726. </binding>
  1727. </checkbox>
  1728. <checkbox>
  1729. <row>5</row>
  1730. <col>1</col>
  1731. <halign>left</halign>
  1732. <label> Snowshoes</label>
  1733. <property>/sim/model/ec130/snowshoes</property>
  1734. <live>true</live>
  1735. <binding>
  1736. <command>dialog-apply</command>
  1737. </binding>
  1738. <binding>
  1739. <command>nasal</command>
  1740. <script>
  1741. if ( getprop("/sim/model/ec130/snowshoes") ) {
  1742. ec130.floats_reset();
  1743. }
  1744. ec130.external_weights();
  1745. </script>
  1746. </binding>
  1747. </checkbox>
  1748. <checkbox>
  1749. <row>6</row>
  1750. <col>1</col>
  1751. <halign>left</halign>
  1752. <label> Search Light SX16</label>
  1753. <property>/sim/model/ec130/searchlight</property>
  1754. <live>true</live>
  1755. <binding>
  1756. <command>dialog-apply</command>
  1757. </binding>
  1758. <binding>
  1759. <command>nasal</command>
  1760. <script>
  1761. if ( getprop("/sim/model/ec130/searchlight") ) {
  1762. setprop("/sim/model/ec130/luggage_wide",0);
  1763. setprop("/sim/model/ec130/basket_right",0);
  1764. setprop("/sim/model/ec130/searchlight_a800",0);
  1765. setprop("/sim/model/searchlight/heading-deg", getprop("/sim/model/searchlight/sx16/heading-default-deg"));
  1766. setprop("/sim/model/searchlight/elevation-deg", getprop("/sim/model/searchlight/sx16/elevation-default-deg"));
  1767. ec130.floats_reset();
  1768. ec130.slight_init();
  1769. ec130.slight_reset();
  1770. } else {
  1771. setprop("/sim/model/ec130/searchlight_filter",0);
  1772. }
  1773. ec130.set_searchview();
  1774. ec130.external_weights();
  1775. </script>
  1776. </binding>
  1777. </checkbox>
  1778. <checkbox>
  1779. <row>7</row>
  1780. <col>1</col>
  1781. <halign>left</halign>
  1782. <label> Search Light Filter</label>
  1783. <property>/sim/model/ec130/searchlight_filter</property>
  1784. <live>true</live>
  1785. <binding>
  1786. <command>dialog-apply</command>
  1787. </binding>
  1788. <binding>
  1789. <command>nasal</command>
  1790. <script>
  1791. if ( getprop("/sim/model/ec130/searchlight_filter") ) {
  1792. setprop("/sim/model/ec130/searchlight",1);
  1793. setprop("/sim/model/ec130/luggage_wide",0);
  1794. setprop("/sim/model/ec130/searchlight_a800",0);
  1795. setprop("/sim/model/searchlight/heading-deg", getprop("/sim/model/searchlight/sx16/heading-default-deg"));
  1796. setprop("/sim/model/searchlight/elevation-deg", getprop("/sim/model/searchlight/sx16/elevation-default-deg"));
  1797. ec130.slight_init();
  1798. ec130.slight_reset();
  1799. ec130.floats_reset();
  1800. setprop("/sim/model/ec130/basket_right",0);
  1801. }
  1802. ec130.set_searchview();
  1803. ec130.external_weights();
  1804. </script>
  1805. </binding>
  1806. </checkbox>
  1807. <checkbox>
  1808. <row>8</row>
  1809. <col>1</col>
  1810. <halign>left</halign>
  1811. <label> Floats</label>
  1812. <property>/sim/model/ec130/emerg_floats</property>
  1813. <live>true</live>
  1814. <binding>
  1815. <command>dialog-apply</command>
  1816. </binding>
  1817. <binding>
  1818. <command>nasal</command>
  1819. <script>
  1820. if ( getprop("/sim/model/ec130/emerg_floats") ) {
  1821. setprop("/sim/model/ec130/basket_left",0);
  1822. setprop("/sim/model/ec130/basket_right",0);
  1823. setprop("/sim/model/ec130/snowshoes",0);
  1824. setprop("/sim/model/ec130/searchlight",0);
  1825. setprop("/sim/model/ec130/searchlight_filter",0);
  1826. ec130.set_searchview();
  1827. }
  1828. ec130.set_luggage_all();
  1829. ec130.external_weights();
  1830. </script>
  1831. </binding>
  1832. </checkbox>
  1833. <!-- empty line before next -->
  1834. <text>
  1835. <row>9</row>
  1836. <col>0</col>
  1837. <label> </label>
  1838. <halign>left</halign>
  1839. </text>
  1840. </group>
  1841. <hrule/>
  1842. <group>
  1843. <layout>vbox</layout>
  1844. <default-padding>4</default-padding>
  1845. <halign>center</halign>
  1846. <!-- empty line before next -->
  1847. <text>
  1848. <label> </label>
  1849. <halign>left</halign>
  1850. </text>
  1851. <button>
  1852. <legend> Antenna Setup (Alt-a)</legend>
  1853. <equal>true</equal>
  1854. <binding>
  1855. <command>nasal</command>
  1856. <script>
  1857. ec130.config_dialog.toggle();
  1858. ec130.antenna_config_dialog.toggle();
  1859. </script>
  1860. </binding>
  1861. <halign>right</halign>
  1862. </button>
  1863. </group>
  1864. <group>
  1865. <stretch>true</stretch>
  1866. </group>
  1867. </group>
  1868. <!-- 3rd column end -->
  1869. </group>
  1870. <!-- top level group end -->
  1871. <hrule/>
  1872. <group>
  1873. <layout>hbox</layout>
  1874. <default-padding>5</default-padding>
  1875. <!-- only to shift "Close" to the middle -->
  1876. <text>
  1877. <label> </label>
  1878. <halign>left</halign>
  1879. </text>
  1880. <button>
  1881. <legend>Close</legend>
  1882. <equal>true</equal>
  1883. <keynum>27</keynum>
  1884. <default>true</default>
  1885. <binding>
  1886. <command>nasal</command>
  1887. <script>
  1888. <!-- flag for open dialog -->
  1889. setprop("/sim/model/ec130/config_dialog_active",0);
  1890. ec130.config_dialog.toggle();
  1891. </script>
  1892. </binding>
  1893. <halign>center</halign>
  1894. </button>
  1895. <button>
  1896. <legend> Help </legend>
  1897. <equal>true</equal>
  1898. <key>?</key>
  1899. <binding>
  1900. <command>nasal</command>
  1901. <script>
  1902. ec130.config_dialog.toggle();
  1903. ec130.help_config_dialog.toggle();
  1904. </script>
  1905. </binding>
  1906. <halign>right</halign>
  1907. </button>
  1908. </group>
  1909. </PropertyList>