123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133 |
- <?xml version="1.0"?>
- <!-- Eurocopter EC 130 Helicopter by Heiko Schulz, Michael Habarta
- This file is part of FlightGear, the free flight simulator
- http://www.flightgear.org/
- Copyright (C) 2009 Heiko Schulz, Heiko.H.Schulz@gmx.net
- (C) 2016 Michael Habarta, mhabarta@freenet.de
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License as
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
- -->
- <PropertyList>
- <!--
- ATTENTION:
- There are dependencies between the dialog definition and nasal code
- regarding the listbox with available liveries. So if the dialog definition
- is modified, make sure to check for the correct property names used in the
- nasal code.
- -->
- <name>Livery_Payload</name>
- <layout>vbox</layout>
- <resizable>false</resizable>
- <modal>false</modal>
- <draggable>true</draggable>
- <default-padding>3</default-padding>
- <nasal>
- <open>
- <!-- flag for open dialog -->
- setprop("/sim/model/ec130/config_dialog_active",1);
- <!-- init interior options -->
- var init = func {
- var p = getprop("/sim/model/ec130/interior_passengers");
- setprop("/sim/model/ec130/interior_passengers_flag_0",0);
- setprop("/sim/model/ec130/interior_passengers_flag_1",0);
- setprop("/sim/model/ec130/interior_passengers_flag_2",0);
- if ( p == 5 ) { setprop("/sim/model/ec130/interior_passengers_flag_0",1); }
- if ( p == 6 ) { setprop("/sim/model/ec130/interior_passengers_flag_1",1); }
- if ( p == 4 ) {
- setprop("/sim/model/ec130/interior_passengers_flag_2",1);
- }
- <!-- if Pilot is not there Co-pilot must (i.e. his controls too) -->
- if ( getprop("/sim/weight[0]/weight-lb") < 40 ) {
- if ( getprop("/sim/model/ec130/copilot_controls") == 0 ) {
- setprop("/sim/model/ec130/copilot_controls",1);
- screen.log.write("One Pilot must be available !!!");
- }
- }
- <!-- available liveries / dialog title -->
- if ( getprop("/sim/model/variant") == "1" ) {
- dir = resolvepath("Aircraft/ec130/Models/Liveries_ec130b4") ~ "/";
- setprop("/sim/gui/dialogs/ec130/config/dialog/group/text/label", " EC130-B4 Configuration (Alt-o)");
- } else {
- dir = resolvepath("Aircraft/ec130/Models/Liveries_ec130t2") ~ "/";
- setprop("/sim/gui/dialogs/ec130/config/dialog/group/text/label", " H130 Configuration (Alt-o)");
- }
- data = [];
- var files = directory(dir);
- if (size(files)) {
- var i = 0;
- foreach (var file; files) {
- if (substr(file, -4) != ".xml") {
- continue;
- }
- var n = io.read_properties(dir ~ file);
- var name = n.getNode("sim/model/livery/name", 1).getValue();
- var index = n.getNode("sim/model/livery/index", 1).getValue();
- if (name == nil or index == nil) {
- continue;
- }
- append(data, [name, index]);
- i+=1;
- }
- data = sort(data, func(a, b) num(a[1]) == nil or num(b[1]) == nil
- ? cmp(a[1], b[1]) : a[1] - b[1]);
- }
- forindex (var i; data) {
- setprop("/sim/gui/dialogs/ec130/config/dialog/group[1]/group/group[1]/list/value[" ~ i ~ "]",data[i][0]);
- }
- <!-- set seat weights and views -->
- ec130.aircraft_init();
- ec130.set_searchview();
- }
- init();
- </open>
- <close># just kept for educational purposes :-)</close>
- </nasal>
- <!-- Title with Esc knob for closing -->
- <group>
- <layout>hbox</layout>
- <empty><stretch>1</stretch></empty>
- <!-- title is set through nasal script above -->
- <text>
- <label>x</label>
- </text>
- <empty><stretch>true</stretch></empty>
- <button>
- <legend></legend>
- <keynum>27</keynum>
- <pref-width>16</pref-width>
- <pref-height>16</pref-height>
- <binding>
- <command>nasal</command>
- <script>
- <!-- flag for open dialog -->
- setprop("/sim/model/ec130/config_dialog_active",0);
- ec130.config_dialog.toggle();
- </script>
- </binding>
- </button>
- </group>
- <hrule/>
- <!-- top level group start -->
- <group>
- <layout>hbox</layout>
- <default-padding>0</default-padding>
- <halign>left</halign>
- <!-- 1st column start -->
- <group>
- <layout>vbox</layout>
- <default-padding>4</default-padding>
- <halign>left</halign>
- <group>
- <layout>table</layout>
- <default-padding>1</default-padding>
- <halign>left</halign>
- <text>
- <row>0</row>
- <col>1</col>
- <label> Livery</label>
- <halign>left</halign>
- </text>
- </group>
- <group>
- <layout>table</layout>
- <default-padding>4</default-padding>
- <halign>left</halign>
- <!-- only to get a gap to left border -->
- <text>
- <row>0</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- <list>
- <row>0</row>
- <col>1</col>
- <name>livery-combo</name>
- <property>/sim/model/livery/name</property>
- <editable>false</editable>
- <pref-height>110</pref-height>
- <pref-width>280</pref-width>
- <halign>fill</halign>
- <!-- this is a place holder for the list only,
- list is filled by Nasal-open script above
- -->
- <value>x</value>
- <binding>
- <command>dialog-apply</command>
- <object-name>livery-combo</object-name>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- aircraft.livery.select(getprop("/sim/model/livery/name"));
- init();
- var trak = getprop("/sim/model/ec130/searchlight_a800");
- if ( !trak ) {
- var h=getprop("/sim/model/searchlight/sx16/heading-default-deg");
- } else {
- var h=getprop("/sim/model/searchlight/a800/heading-default-deg");
- }
- if ( getprop("/sim/model/searchlight/active") ) {
- if ( trak ) {
- h=h+180;
- }
- }
- setprop("/sim/model/searchlight/heading-deg", h);
- if ( !trak ) {
- setprop("/sim/model/searchlight/elevation-deg", getprop("/sim/model/searchlight/sx16/elevation-default-deg"));
- } else {
- setprop("/sim/model/searchlight/elevation-deg", getprop("/sim/model/searchlight/a800/elevation-default-deg"));
- }
- ec130.slight_init();
- ec130.slight_reset();
- ec130.set_searchview();
- </script>
- </binding>
- </list>
- </group>
- <group>
- <layout>table</layout>
- <default-padding>1</default-padding>
- <halign>left</halign>
- <!-- only to get a gap to left border -->
- <text>
- <row>0</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- <!-- name of currently selected livery -->
- <text>
- <row>0</row>
- <col>1</col>
- <property>/sim/model/livery/name</property>
- <label>xxxxxxxxxxxxxxxxxxxxxxxx</label>
- <format>%-24s</format>
- <halign>right</halign>
- <live>true</live>
- </text>
- <button>
- <row>0</row>
- <col>3</col>
- <legend> ? </legend>
- <binding>
- <command>nasal</command>
- <script>
- ec130.config_dialog.toggle();
- ec130.model_info_dialog.toggle();
- </script>
- </binding>
- <halign>right</halign>
- </button>
- <!-- empty line before next -->
- <text>
- <row>1</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- </group>
- <hrule/>
- <group>
- <layout>table</layout>
- <default-padding>4</default-padding>
- <halign>left</halign>
- <!-- only to get a gap to left border -->
- <text>
- <row>0</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- <text>
- <row>0</row>
- <col>1</col>
- <label>Interior</label>
- <halign>left</halign>
- </text>
- <text>
- <row>1</row>
- <col>1</col>
- <label>======</label>
- <halign>left</halign>
- </text>
- <radio>
- <row>2</row>
- <col>1</col>
- <halign>left</halign>
- <label> 5 Passengers (standard)</label>
- <property>/sim/model/ec130/interior_passengers_flag_0</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- setprop("/sim/model/ec130/interior_passengers",5);
- <!--setprop("/sim/model/ec130/interior_passengers_flag_0",0); -->
- setprop("/sim/model/ec130/interior_passengers_flag_1",0);
- setprop("/sim/model/ec130/interior_passengers_flag_2",0);
- ec130.set_seats();
- ec130.set_luggage_all();
- </script>
- </binding>
- </radio>
- <radio>
- <row>3</row>
- <col>1</col>
- <halign>left</halign>
- <label> 6 Passengers (medium density)</label>
- <property>/sim/model/ec130/interior_passengers_flag_1</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- setprop("/sim/model/ec130/interior_passengers",6);
- setprop("/sim/model/ec130/interior_passengers_flag_0",0);
- <!--setprop("/sim/model/ec130/interior_passengers_flag_1",0); -->
- setprop("/sim/model/ec130/interior_passengers_flag_2",0);
- ec130.set_seats();
- ec130.set_luggage_all();
- </script>
- </binding>
- </radio>
- <radio>
- <row>4</row>
- <col>1</col>
- <halign>left</halign>
- <label> Rescue Missions (EMS)</label>
- <property>/sim/model/ec130/interior_passengers_flag_2</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- setprop("/sim/model/ec130/interior_passengers",4);
- setprop("/sim/model/ec130/interior_passengers_flag_0",0);
- setprop("/sim/model/ec130/interior_passengers_flag_1",0);
- <!--setprop("/sim/model/ec130/interior_passengers_flag_2",0); -->
- ec130.set_seats();
- ec130.set_luggage_all();
- </script>
- </binding>
- </radio>
- </group>
- <hrule/>
- <group>
- <layout>table</layout>
- <default-padding>3</default-padding>
- <halign>left</halign>
- <!-- only to get a gap to left border -->
- <text>
- <row>0</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- <text>
- <row>0</row>
- <col>1</col>
- <label>EC130 Views</label>
- <halign>left</halign>
- </text>
- <text>
- <row>1</row>
- <col>1</col>
- <label>===========</label>
- <halign>left</halign>
- </text>
- <!-- EC130 specific views -->
- <!-- 101 -->
- <checkbox>
- <row>2</row>
- <col>1</col>
- <halign>left</halign>
- <label> Pilot</label>
- <property>/sim/view[0]/enabled</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.toggle_view(-1);</script>
- </binding>
- </checkbox>
- <group>
- <row>3</row>
- <col>1</col>
- <layout>hbox</layout>
- <default-padding>0</default-padding>
- <halign>left</halign>
- <!-- 101 -->
- <checkbox>
- <halign>left</halign>
- <label> Co-Pilot (</label>
- <property>/sim/view[101]/enabled</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.toggle_view(-101);</script>
- </binding>
- </checkbox>
- <checkbox>
- <halign>left</halign>
- <label>Co-Pilot Controls)</label>
- <property>/sim/model/ec130/copilot_controls</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.toggle_copilot_controls(-1);</script>
- </binding>
- </checkbox>
- </group>
- <!-- 102 -->
- <checkbox>
- <row>4</row>
- <col>1</col>
- <halign>left</halign>
- <label> Front Left Seat (6 Pass. only)</label>
- <property>/sim/view[102]/enabled</property>
- <live>true</live>
- <enable>
- <equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>6</value>
- </equals>
- </enable>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.toggle_view(-102);</script>
- </binding>
- </checkbox>
- <!-- 103 -->
- <checkbox>
- <row>5</row>
- <col>1</col>
- <halign>left</halign>
- <label> Front Right Seat (not in EMS)</label>
- <property>/sim/view[103]/enabled</property>
- <live>true</live>
- <enable>
- <not-equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>4</value>
- </not-equals>
- </enable>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.toggle_view(-103);</script>
- </binding>
- </checkbox>
- <!-- 104 -->
- <checkbox>
- <row>6</row>
- <col>1</col>
- <halign>left</halign>
- <label> Rear Left Seat</label>
- <property>/sim/view[104]/enabled</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.toggle_view(-104);</script>
- </binding>
- </checkbox>
- <!-- 105 -->
- <checkbox>
- <row>7</row>
- <col>1</col>
- <halign>left</halign>
- <label> Rear Mid Left Seat</label>
- <property>/sim/view[105]/enabled</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.toggle_view(-105);</script>
- </binding>
- </checkbox>
- <!-- 106 -->
- <checkbox>
- <row>8</row>
- <col>1</col>
- <halign>left</halign>
- <label> Rear Mid Right Seat</label>
- <visible>
- <greater-than>
- <property>sim/model/ec130/interior_passengers</property>
- <value>4</value>
- </greater-than>
- </visible>
- <property>/sim/view[106]/enabled</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.toggle_view(-106);</script>
- </binding>
- </checkbox>
- <!-- 107 Patient -->
- <checkbox>
- <row>8</row>
- <col>1</col>
- <halign>left</halign>
- <label> Patient</label>
- <visible>
- <equals>
- <property>sim/model/ec130/interior_passengers</property>
- <value>4</value>
- </equals>
- </visible>
- <property>/sim/view[107]/enabled</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.toggle_view(-107);</script>
- </binding>
- </checkbox>
- <!-- 108 -->
- <checkbox>
- <row>9</row>
- <col>1</col>
- <halign>left</halign>
- <label> Rear Right Seat (not in EMS)</label>
- <property>/sim/view[108]/enabled</property>
- <live>true</live>
- <enable>
- <not-equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>4</value>
- </not-equals>
- </enable>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.toggle_view(-108);</script>
- </binding>
- </checkbox>
- <text>
- <row>10</row>
- <col>1</col>
- <label> ------------ </label>
- <halign>left</halign>
- </text>
- <!-- 109 -->
- <checkbox>
- <row>11</row>
- <col>1</col>
- <halign>left</halign>
- <label> Tail Camera</label>
- <property>/sim/view[109]/enabled</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- </checkbox>
- <!-- 110 -->
- <checkbox>
- <row>12</row>
- <col>1</col>
- <halign>left</halign>
- <label> Rotor Camera</label>
- <property>/sim/view[110]/enabled</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- </checkbox>
- <!-- 111 -->
- <checkbox>
- <row>13</row>
- <col>1</col>
- <halign>left</halign>
- <label> Searchlight Watch Camera</label>
- <property>/sim/view[111]/enabled_flag</property>
- <live>true</live>
- <enable>
- <or>
- <property>/sim/model/ec130/searchlight</property>
- <property>/sim/model/ec130/searchlight_a800</property>
- </or>
- </enable>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- ec130.set_searchview();
- </script>
- </binding>
- </checkbox>
- <!-- 112 -->
- <checkbox>
- <row>14</row>
- <col>1</col>
- <halign>left</halign>
- <label> Searchlight Follow Camera</label>
- <property>/sim/view[112]/enabled_flag</property>
- <live>true</live>
- <enable>
- <or>
- <property>/sim/model/ec130/searchlight</property>
- <property>/sim/model/ec130/searchlight_a800</property>
- </or>
- </enable>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- ec130.set_searchview();
- </script>
- </binding>
- </checkbox>
- </group>
- <group>
- <stretch>true</stretch>
- </group>
- </group>
- <!-- 1st column end -->
- <vrule/>
- <!-- 2nd column start -->
- <group>
- <layout>vbox</layout>
- <default-padding>4</default-padding>
- <halign>left</halign>
- <group>
- <layout>table</layout>
- <default-padding>4</default-padding>
- <halign>left</halign>
- <!-- only to get a gap to left border -->
- <text>
- <row>0</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- <text>
- <row>0</row>
- <col>1</col>
- <label>Fuel </label>
- <halign>left</halign>
- </text>
- <text>
- <row>1</row>
- <col>1</col>
- <label>==== </label>
- <halign>left</halign>
- </text>
- <text>
- <row>2</row>
- <col>1</col>
- <label> Tank </label>
- <halign>center</halign>
- </text>
- <text>
- <row>2</row>
- <col>2</col>
- <label>Pounds</label>
- <halign>right</halign>
- </text>
- <text>
- <row>2</row>
- <col>3</col>
- <label>Gallons</label>
- <halign>right</halign>
- </text>
- <text>
- <row>2</row>
- <col>4</col>
- <label>Fraction</label>
- <halign>right</halign>
- </text>
- <text>
- <row>2</row>
- <col>5</col>
- <label> </label>
- <halign>right</halign>
- </text>
- <!-- only to get a gap to left border -->
- <text>
- <row>3</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- <slider>
- <row>3</row>
- <col>1</col>
- <property>/consumables/fuel/tank/level-lbs</property>
- <min>0</min>
- <max>941</max>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- </slider>
- <text>
- <row>3</row>
- <col>2</col>
- <property>/consumables/fuel/tank/level-lbs</property>
- <label>xxxxxx</label>
- <format>%5.0f</format>
- <halign>right</halign>
- <live>true</live>
- </text>
- <text>
- <row>3</row>
- <col>3</col>
- <property>/consumables/fuel/tank/level-gal_us</property>
- <label>xxxxxx</label>
- <format>%5.0f</format>
- <halign>right</halign>
- <live>true</live>
- </text>
- <text>
- <row>3</row>
- <col>4</col>
- <property>/consumables/fuel/tank/level-norm</property>
- <label>xxxxxx</label>
- <format>%.2f</format>
- <halign>right</halign>
- <live>true</live>
- </text>
- <!-- empty line before next -->
- <text>
- <row>8</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- </group>
- <hrule/>
- <group>
- <layout>vbox</layout>
- <group>
- <layout>table</layout>
- <default-padding>4</default-padding>
- <halign>left</halign>
- <!-- only to get a gap to left border -->
- <text>
- <row>0</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- <text>
- <row>0</row>
- <col>1</col>
- <label>Weights (empty seat: 30 lbs)</label>
- <halign>left</halign>
- </text>
- <text>
- <row>1</row>
- <col>1</col>
- <label>======</label>
- <halign>left</halign>
- </text>
- </group>
- <group>
- <!-- weights -->
- <layout>table</layout>
- <default-padding>4</default-padding>
- <halign>left</halign>
- <!-- only to get a gap to left border -->
- <text>
- <row>0</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- <!-- headline -->
- <text>
- <row>0</row>
- <col>1</col>
- <label>Location</label>
- <halign>left</halign>
- </text>
- <text>
- <row>0</row>
- <col>2</col>
- <label> </label>
- <halign>left</halign>
- </text>
- <text>
- <row>0</row>
- <col>3</col>
- <label> Pounds </label>
- <halign>right</halign>
- </text>
- <!-- contents -->
- <!-- row 1 Pilot -->
- <text>
- <row>1</row>
- <col>1</col>
- <property>/sim/weight[0]/name</property>
- <label>xxxxxxxxxxxxxxxxx</label>
- <halign>left</halign>
- </text>
- <slider>
- <row>1</row>
- <col>2</col>
- <property>/sim/weight[0]/weight-lb</property>
- <min>0</min>
- <max>330</max>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- gui.weightChangeHandler();
- ec130.set_seats();
- </script>
- </binding>
- </slider>
- <text>
- <row>1</row>
- <col>3</col>
- <property>/sim/weight[0]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- </text>
- <!-- row 2 Co-Pilot -->
- <text>
- <row>2</row>
- <col>1</col>
- <property>/sim/weight[1]/name</property>
- <label>xxxxxxxxxxxxx</label>
- <halign>left</halign>
- </text>
- <slider>
- <row>2</row>
- <col>2</col>
- <property>/sim/weight[1]/weight-lb</property>
- <min>0</min>
- <max>330</max>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- gui.weightChangeHandler();
- ec130.set_seats();
- </script>
- </binding>
- </slider>
- <text>
- <row>2</row>
- <col>3</col>
- <property>/sim/weight[1]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- </text>
- <!-- row 3 Front Left -->
- <text>
- <row>3</row>
- <col>1</col>
- <property>/sim/weight[2]/name</property>
- <label>xxxxxxxxxxxxx</label>
- <halign>left</halign>
- <enable>
- <equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>6</value>
- </equals>
- </enable>
- </text>
- <slider>
- <row>3</row>
- <col>2</col>
- <property>/sim/weight[2]/weight-lb</property>
- <min>0</min>
- <max>330</max>
- <live>true</live>
- <enable>
- <equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>6</value>
- </equals>
- </enable>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- gui.weightChangeHandler();
- ec130.set_seats();
- </script>
- </binding>
- </slider>
- <text>
- <row>3</row>
- <col>3</col>
- <property>/sim/weight[2]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- <enable>
- <equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>6</value>
- </equals>
- </enable>
- </text>
- <!-- row 4 Front Right -->
- <text>
- <row>4</row>
- <col>1</col>
- <property>/sim/weight[3]/name</property>
- <label>xxxxxxxxxxxxx</label>
- <halign>left</halign>
- <enable>
- <not-equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>4</value>
- </not-equals>
- </enable>
- </text>
- <slider>
- <row>4</row>
- <col>2</col>
- <property>/sim/weight[3]/weight-lb</property>
- <min>0</min>
- <max>330</max>
- <live>true</live>
- <enable>
- <not-equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>4</value>
- </not-equals>
- </enable>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- gui.weightChangeHandler();
- ec130.set_seats();
- </script>
- </binding>
- </slider>
- <text>
- <row>4</row>
- <col>3</col>
- <property>/sim/weight[3]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- <enable>
- <not-equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>4</value>
- </not-equals>
- </enable>
- </text>
- <!-- row 5 Rear Left -->
- <text>
- <row>5</row>
- <col>1</col>
- <property>/sim/weight[4]/name</property>
- <label>xxxxxxxxxxxxx</label>
- <halign>left</halign>
- </text>
- <slider>
- <row>5</row>
- <col>2</col>
- <property>/sim/weight[4]/weight-lb</property>
- <min>0</min>
- <max>330</max>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- gui.weightChangeHandler();
- ec130.set_seats();
- </script>
- </binding>
- </slider>
- <text>
- <row>5</row>
- <col>3</col>
- <property>/sim/weight[4]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- </text>
- <!-- row 6 Rear Mid Left -->
- <text>
- <row>6</row>
- <col>1</col>
- <property>/sim/weight[5]/name</property>
- <label>xxxxxxxxxxxxx</label>
- <halign>left</halign>
- </text>
- <slider>
- <row>6</row>
- <col>2</col>
- <property>/sim/weight[5]/weight-lb</property>
- <min>0</min>
- <max>330</max>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- gui.weightChangeHandler();
- ec130.set_seats();
- </script>
- </binding>
- </slider>
- <text>
- <row>6</row>
- <col>3</col>
- <property>/sim/weight[5]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- </text>
- <!-- row 7 Rear Mid Right -->
- <text>
- <row>7</row>
- <col>1</col>
- <live>true</live>
- <property>/sim/weight[6]/name</property>
- <label>xxxxxxxxxxxxx</label>
- <halign>left</halign>
- </text>
- <slider>
- <row>7</row>
- <col>2</col>
- <property>/sim/weight[6]/weight-lb</property>
- <min>0</min>
- <max>330</max>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- gui.weightChangeHandler();
- ec130.set_seats();
- </script>
- </binding>
- </slider>
- <text>
- <row>7</row>
- <col>3</col>
- <property>/sim/weight[6]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- </text>
- <!-- row 8 Rear Right -->
- <text>
- <row>8</row>
- <col>1</col>
- <property>/sim/weight[7]/name</property>
- <label>xxxxxxxxxxxxx</label>
- <halign>left</halign>
- <enable>
- <not-equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>4</value>
- </not-equals>
- </enable>
- </text>
- <slider>
- <row>8</row>
- <col>2</col>
- <property>/sim/weight[7]/weight-lb</property>
- <min>0</min>
- <max>330</max>
- <live>true</live>
- <enable>
- <not-equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>4</value>
- </not-equals>
- </enable>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- gui.weightChangeHandler();
- ec130.set_seats();
- </script>
- </binding>
- </slider>
- <text>
- <row>8</row>
- <col>3</col>
- <property>/sim/weight[7]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- <enable>
- <not-equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>4</value>
- </not-equals>
- </enable>
- </text>
- <!-- row 9 Luggage Left-->
- <text>
- <row>9</row>
- <col>1</col>
- <property>/sim/weight[8]/name</property>
- <label>xxxxxxxxxxxxx</label>
- <halign>left</halign>
- </text>
- <slider>
- <row>9</row>
- <col>2</col>
- <property>/sim/weight[8]/weight-lb</property>
- <min>0</min>
- <max>300</max>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- gui.weightChangeHandler();
- ec130.set_luggage(8);
- </script>
- </binding>
- </slider>
- <text>
- <row>9</row>
- <col>3</col>
- <property>/sim/weight[8]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- </text>
- <!-- row 10 Luggage Right -->
- <text>
- <row>10</row>
- <col>1</col>
- <property>/sim/weight[9]/name</property>
- <label>xxxxxxxxxxxxx</label>
- <halign>left</halign>
- </text>
- <slider>
- <row>10</row>
- <col>2</col>
- <property>/sim/weight[9]/weight-lb</property>
- <min>0</min>
- <max>300</max>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- gui.weightChangeHandler();
- ec130.set_luggage(9);
- </script>
- </binding>
- </slider>
- <text>
- <row>10</row>
- <col>3</col>
- <property>/sim/weight[9]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- </text>
- <!-- row 11 Luggage Back -->
- <text>
- <row>11</row>
- <col>1</col>
- <property>/sim/weight[10]/name</property>
- <label>xxxxxxxxxxxxx</label>
- <halign>left</halign>
- </text>
- <slider>
- <row>11</row>
- <col>2</col>
- <property>/sim/weight[10]/weight-lb</property>
- <min>0</min>
- <max>176</max>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- gui.weightChangeHandler();
- ec130.set_luggage(10);
- </script>
- </binding>
- </slider>
- <text>
- <row>11</row>
- <col>3</col>
- <property>/sim/weight[10]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- </text>
- <!-- row 12 Basket Left -->
- <text>
- <row>12</row>
- <col>1</col>
- <property>/sim/weight[11]/name</property>
- <label>xxxxxxxxxxxxx</label>
- <halign>left</halign>
- <enable>
- <property>/sim/model/ec130/basket_left</property>
- </enable>
- </text>
- <slider>
- <row>12</row>
- <col>2</col>
- <property>/sim/weight[11]/weight-lb</property>
- <min>0</min>
- <max>300</max>
- <live>true</live>
- <enable>
- <property>/sim/model/ec130/basket_left</property>
- </enable>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- gui.weightChangeHandler();
- ec130.set_luggage(11);
- </script>
- </binding>
- </slider>
- <text>
- <row>12</row>
- <col>3</col>
- <property>/sim/weight[11]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- <enable>
- <property>/sim/model/ec130/basket_left</property>
- </enable>
- </text>
- <!-- row 13 Basket Right -->
- <text>
- <row>13</row>
- <col>1</col>
- <property>/sim/weight[12]/name</property>
- <label>xxxxxxxxxxxxx</label>
- <halign>left</halign>
- <enable>
- <property>/sim/model/ec130/basket_right</property>
- </enable>
- </text>
- <slider>
- <row>13</row>
- <col>2</col>
- <property>/sim/weight[12]/weight-lb</property>
- <min>0</min>
- <max>300</max>
- <live>true</live>
- <enable>
- <property>/sim/model/ec130/basket_right</property>
- </enable>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- gui.weightChangeHandler();
- ec130.set_luggage(12);
- </script>
- </binding>
- </slider>
- <text>
- <row>13</row>
- <col>3</col>
- <property>/sim/weight[12]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- <enable>
- <property>/sim/model/ec130/basket_right</property>
- </enable>
- </text>
- <!-- row 14 Equipment -->
- <text>
- <row>14</row>
- <col>1</col>
- <property>/sim/weight[13]/name</property>
- <label>xxxxxxxxxxxxx</label>
- <halign>left</halign>
- <enable>
- <equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>99</value>
- </equals>
- </enable>
- </text>
- <slider>
- <row>14</row>
- <col>2</col>
- <property>/sim/weight[13]/weight-lb</property>
- <min>0</min>
- <max>300</max>
- <live>true</live>
- <!-- disable always -->
- <enable>
- <equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>99</value>
- </equals>
- </enable>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>gui.weightChangeHandler();</script>
- </binding>
- </slider>
- <text>
- <row>14</row>
- <col>3</col>
- <property>/sim/weight[13]/weight-lb</property>
- <label>xxxxxxxx</label>
- <format> %7.0f</format>
- <halign>right</halign>
- <live>true</live>
- <enable>
- <equals>
- <property>/sim/model/ec130/interior_passengers</property>
- <value>99</value>
- </equals>
- </enable>
- </text>
- <!-- row 15 -->
- <text>
- <row>15</row>
- <col>1</col>
- <label> </label>
- <halign>left</halign>
- </text>
- <text>
- <row>15</row>
- <col>2</col>
- <label> </label>
- <halign>left</halign>
- </text>
- <text>
- <row>15</row>
- <col>3</col>
- <label> --------</label>
- <halign>left</halign>
- </text>
- <!-- row 16 -->
- <text>
- <row>16</row>
- <col>1</col>
- <label>Gross Weight:</label>
- <halign>left</halign>
- </text>
- <text>
- <row>16</row>
- <col>2</col>
- <label></label>
- <halign>left</halign>
- </text>
- <text>
- <row>16</row>
- <col>3</col>
- <property>/yasim/gross-weight-lbs</property>
- <label>xxxxxx</label>
- <format> %7.0f</format>
- <halign>left</halign>
- <live>true</live>
- </text>
- <text>
- <row>17</row>
- <col>3</col>
- <property>/limits/mass-and-balance/maximum-takeoff-mass-lbs</property>
- <label>xxxxxxxxxx</label>
- <format>(max.%4s)</format>
- <halign>left</halign>
- </text>
- </group>
- </group>
- <group>
- <stretch>true</stretch>
- </group>
- </group>
- <!-- 2nd column end -->
- <vrule/>
- <!-- 3rd column start -->
- <group>
- <layout>vbox</layout>
- <default-padding>4</default-padding>
- <halign>left</halign>
- <group>
- <layout>table</layout>
- <default-padding>4</default-padding>
- <halign>left</halign>
- <!-- only to get a gap to left border -->
- <text>
- <row>0</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- <text>
- <row>0</row>
- <col>1</col>
- <label>Equipment (combinable)</label>
- <halign>left</halign>
- </text>
- <text>
- <row>1</row>
- <col>1</col>
- <label>===================</label>
- <halign>left</halign>
- </text>
- <checkbox>
- <row>2</row>
- <col>1</col>
- <halign>left</halign>
- <label> Wire-Cutter</label>
- <property>/sim/model/ec130/wirecutter</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.external_weights()</script>
- </binding>
- </checkbox>
- <checkbox>
- <row>3</row>
- <col>1</col>
- <halign>left</halign>
- <label> Mirror</label>
- <property>/sim/model/ec130/mirror</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.external_weights()</script>
- </binding>
- </checkbox>
- <checkbox>
- <row>4</row>
- <col>1</col>
- <halign>left</halign>
- <label> FLIR</label>
- <property>/sim/model/ec130/FLIR</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.external_weights()</script>
- </binding>
- </checkbox>
- <checkbox>
- <row>5</row>
- <col>1</col>
- <halign>left</halign>
- <label> Searchlight A800</label>
- <property>/sim/model/ec130/searchlight_a800</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- setprop("/sim/model/ec130/searchlight",0);
- setprop("/sim/model/ec130/searchlight_filter",0);
- var h=getprop("/sim/model/searchlight/a800/heading-default-deg");
- if ( getprop("/sim/model/searchlight/active") ) {
- h=h+180;
- }
- setprop("/sim/model/searchlight/heading-deg", h);
- setprop("/sim/model/searchlight/elevation-deg", getprop("/sim/model/searchlight/a800/elevation-default-deg"));
- ec130.slight_init();
- ec130.slight_reset();
- ec130.set_searchview();
- ec130.external_weights();
- </script>
- </binding>
- </checkbox>
- <checkbox>
- <row>6</row>
- <col>1</col>
- <halign>left</halign>
- <label> Strobe Light Stabilizer</label>
- <property>/sim/model/ec130/stabi_strobe</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <!--
- <binding>
- <command>nasal</command>
- <script>ec130.external_weights()</script>
- </binding>
- -->
- </checkbox>
- <checkbox>
- <row>7</row>
- <col>1</col>
- <halign>left</halign>
- <label> Strobe Light Gear</label>
- <property>/sim/model/ec130/gear_strobe</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.external_weights()</script>
- </binding>
- </checkbox>
- <checkbox>
- <row>8</row>
- <col>1</col>
- <halign>left</halign>
- <label> Gear Landing Lights</label>
- <property>/sim/model/ec130/gear_light</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.external_weights()</script>
- </binding>
- </checkbox>
- <checkbox>
- <row>9</row>
- <col>1</col>
- <halign>left</halign>
- <label> Cargo Hook</label>
- <property>/sim/model/ec130/hoist</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.external_weights()</script>
- </binding>
- </checkbox>
- <text>
- <row>10</row>
- <col>1</col>
- <label> ------------ </label>
- <halign>left</halign>
- </text>
- <checkbox>
- <row>11</row>
- <col>1</col>
- <halign>left</halign>
- <label> GSDI (Alt-g)</label>
- <property>/sim/model/ec130/show_gsdi</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>ec130.external_weights()</script>
- </binding>
- </checkbox>
- <!-- empty line before next -->
- <text>
- <row>12</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- </group>
- <hrule/>
- <group>
- <layout>table</layout>
- <default-padding>4</default-padding>
- <halign>left</halign>
- <!-- only to get a gap to left border -->
- <text>
- <row>0</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- <text>
- <row>0</row>
- <col>1</col>
- <label>Equipment (mutually exclusive)</label>
- <halign>right</halign>
- </text>
- <text>
- <row>1</row>
- <col>1</col>
- <label>=========================</label>
- <halign>right</halign>
- </text>
- <checkbox>
- <row>2</row>
- <col>1</col>
- <halign>left</halign>
- <label> Basket (left)</label>
- <property>/sim/model/ec130/basket_left</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- if ( getprop("/sim/model/ec130/basket_left") ) {
- ec130.floats_reset();
- setprop("/sim/model/ec130/luggage_wide",0);
- } else {
- setprop("/sim/weight[11]/weight-lb",0);
- }
- ec130.set_luggage_all();
- ec130.external_weights();
- </script>
- </binding>
- </checkbox>
- <checkbox>
- <row>3</row>
- <col>1</col>
- <halign>left</halign>
- <label> Basket (right)</label>
- <property>/sim/model/ec130/basket_right</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- if ( getprop("/sim/model/ec130/basket_right") ) {
- setprop("/sim/model/ec130/luggage_wide",0);
- setprop("/sim/model/ec130/searchlight",0);
- setprop("/sim/model/ec130/searchlight_filter",0);
- ec130.floats_reset();
- ec130.set_searchview();
- setprop("sim/model/ec130/doors/passengerr/position-norm",0);
- } else {
- setprop("/sim/weight[12]/weight-lb",0);
- }
- ec130.set_luggage_all();
- ec130.external_weights();
- </script>
- </binding>
- </checkbox>
- <checkbox>
- <row>4</row>
- <col>1</col>
- <halign>left</halign>
- <label> Wide Luggage Boxes</label>
- <property>/sim/model/ec130/luggage_wide</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- if ( getprop("/sim/model/ec130/luggage_wide") ) {
- setprop("/sim/model/ec130/searchlight",0);
- setprop("/sim/model/ec130/searchlight_filter",0);
- ec130.set_searchview();
- setprop("/sim/model/ec130/basket_left",0);
- setprop("/sim/model/ec130/basket_right",0);
- }
- ec130.set_luggage_all();
- ec130.external_weights();
- </script>
- </binding>
- </checkbox>
- <checkbox>
- <row>5</row>
- <col>1</col>
- <halign>left</halign>
- <label> Snowshoes</label>
- <property>/sim/model/ec130/snowshoes</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- if ( getprop("/sim/model/ec130/snowshoes") ) {
- ec130.floats_reset();
- }
- ec130.external_weights();
- </script>
- </binding>
- </checkbox>
- <checkbox>
- <row>6</row>
- <col>1</col>
- <halign>left</halign>
- <label> Search Light SX16</label>
- <property>/sim/model/ec130/searchlight</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- if ( getprop("/sim/model/ec130/searchlight") ) {
- setprop("/sim/model/ec130/luggage_wide",0);
- setprop("/sim/model/ec130/basket_right",0);
- setprop("/sim/model/ec130/searchlight_a800",0);
- setprop("/sim/model/searchlight/heading-deg", getprop("/sim/model/searchlight/sx16/heading-default-deg"));
- setprop("/sim/model/searchlight/elevation-deg", getprop("/sim/model/searchlight/sx16/elevation-default-deg"));
- ec130.floats_reset();
- ec130.slight_init();
- ec130.slight_reset();
- } else {
- setprop("/sim/model/ec130/searchlight_filter",0);
- }
- ec130.set_searchview();
- ec130.external_weights();
- </script>
- </binding>
- </checkbox>
- <checkbox>
- <row>7</row>
- <col>1</col>
- <halign>left</halign>
- <label> Search Light Filter</label>
- <property>/sim/model/ec130/searchlight_filter</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- if ( getprop("/sim/model/ec130/searchlight_filter") ) {
- setprop("/sim/model/ec130/searchlight",1);
- setprop("/sim/model/ec130/luggage_wide",0);
- setprop("/sim/model/ec130/searchlight_a800",0);
- setprop("/sim/model/searchlight/heading-deg", getprop("/sim/model/searchlight/sx16/heading-default-deg"));
- setprop("/sim/model/searchlight/elevation-deg", getprop("/sim/model/searchlight/sx16/elevation-default-deg"));
- ec130.slight_init();
- ec130.slight_reset();
- ec130.floats_reset();
- setprop("/sim/model/ec130/basket_right",0);
- }
- ec130.set_searchview();
- ec130.external_weights();
- </script>
- </binding>
- </checkbox>
- <checkbox>
- <row>8</row>
- <col>1</col>
- <halign>left</halign>
- <label> Floats</label>
- <property>/sim/model/ec130/emerg_floats</property>
- <live>true</live>
- <binding>
- <command>dialog-apply</command>
- </binding>
- <binding>
- <command>nasal</command>
- <script>
- if ( getprop("/sim/model/ec130/emerg_floats") ) {
- setprop("/sim/model/ec130/basket_left",0);
- setprop("/sim/model/ec130/basket_right",0);
- setprop("/sim/model/ec130/snowshoes",0);
- setprop("/sim/model/ec130/searchlight",0);
- setprop("/sim/model/ec130/searchlight_filter",0);
- ec130.set_searchview();
- }
- ec130.set_luggage_all();
- ec130.external_weights();
- </script>
- </binding>
- </checkbox>
- <!-- empty line before next -->
- <text>
- <row>9</row>
- <col>0</col>
- <label> </label>
- <halign>left</halign>
- </text>
- </group>
- <hrule/>
- <group>
- <layout>vbox</layout>
- <default-padding>4</default-padding>
- <halign>center</halign>
- <!-- empty line before next -->
- <text>
- <label> </label>
- <halign>left</halign>
- </text>
- <button>
- <legend> Antenna Setup (Alt-a)</legend>
- <equal>true</equal>
- <binding>
- <command>nasal</command>
- <script>
- ec130.config_dialog.toggle();
- ec130.antenna_config_dialog.toggle();
- </script>
- </binding>
- <halign>right</halign>
- </button>
- </group>
- <group>
- <stretch>true</stretch>
- </group>
- </group>
- <!-- 3rd column end -->
- </group>
- <!-- top level group end -->
- <hrule/>
- <group>
- <layout>hbox</layout>
- <default-padding>5</default-padding>
- <!-- only to shift "Close" to the middle -->
- <text>
- <label> </label>
- <halign>left</halign>
- </text>
- <button>
- <legend>Close</legend>
- <equal>true</equal>
- <keynum>27</keynum>
- <default>true</default>
- <binding>
- <command>nasal</command>
- <script>
- <!-- flag for open dialog -->
- setprop("/sim/model/ec130/config_dialog_active",0);
- ec130.config_dialog.toggle();
- </script>
- </binding>
- <halign>center</halign>
- </button>
- <button>
- <legend> Help </legend>
- <equal>true</equal>
- <key>?</key>
- <binding>
- <command>nasal</command>
- <script>
- ec130.config_dialog.toggle();
- ec130.help_config_dialog.toggle();
- </script>
- </binding>
- <halign>right</halign>
- </button>
- </group>
- </PropertyList>
|