1
0
Fork 0
fgdata/gui/dialogs/pushback.xml

86 lines
1.9 KiB
XML

<?xml version="1.0"?>
<PropertyList>
<name>pushback</name>
<layout>vbox</layout>
<nasal>
<open>
var pushback_position = aircraft.door.new("sim/model/pushback", 10.0);
pushback_position.setpos(pushback_position.getpos());
props.globals.initNode("/sim/model/pushback/enabled", 0, "BOOL" );
props.globals.initNode("/sim/model/pushback/magnitude", 0.0 );
</open>
</nasal>
<group>
<layout>hbox</layout>
<text>
<label>Pushback</label>
</text>
<empty><stretch>true</stretch></empty>
<button>
<legend></legend>
<key>Esc</key>
<pref-width>16</pref-width>
<pref-height>16</pref-height>
<border>2</border>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
<hrule/>
<group>
<stretch>true</stretch>
<layout>vbox</layout>
<halign>center</halign>
<valign>top</valign>
<checkbox>
<halign>left</halign>
<label>Show pushback</label>
<property>/sim/model/pushback/enabled</property>
<binding>
<command>property-toggle</command>
<property>/sim/model/pushback/enabled</property>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Connect pushback</label>
<property>/sim/model/pushback/position-norm</property>
<binding>
<command>nasal</command>
<script>pushback_position.toggle();</script>
</binding>
</checkbox>
<group>
<layout>hbox</layout>
<text>
<label>Force:</label>
</text>
<slider>
<row>0</row>
<col>2</col>
<min>-40000</min>
<max>40000</max>
<property>/sim/model/pushback/magnitude</property>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
</group>
</group>
</PropertyList>