Howto:Implement pushback: Difference between revisions

Jump to navigation Jump to search
m
Properties still need to be set to 0...
mNo edit summary
m (Properties still need to be set to 0...)
Line 54: Line 54:


===-set.xml===
===-set.xml===
Below the </sim> tag in the aircraft -set.xml file, we add our [[Menubar|menu]] dialog. A generic one is available at <tt>$FG_ROOT/gui/Dialogs/pushback.xml</tt>. Add the following lines to include it in the Equipment menu of the aircraft. Note: if the menubar and default tags are already there, you do no need to add them again. Just place the stuff between them.
Between the <model> tags in the -set.xml file we set three properties to false (0). Note: if the model tags are already there, you do no need to add them again. Just place the stuff between them. If you want the truck to be connected on startup, set linked and position-norm to 1. Note: if the model tags are already there, you do no need to add them again. Just place the stuff between them.
 
<model>
  <pushback>
  <magnitude>0</magnitude>
  <linked>0</linked>
  <position-norm>0</position-norm>
  </pushback>
</model>
 
Below the </sim> tag, we add our [[Menubar|menu]] dialog. A generic one is available at <tt>$FG_ROOT/gui/Dialogs/pushback.xml</tt>. Add the following lines to include it in the Equipment menu of the aircraft. Note: if the menubar and default tags are already there, you do no need to add them again. Just place the stuff between them.


  <menubar>
  <menubar>

Navigation menu