735
edits
Line 127: | Line 127: | ||
# Copy Aircraft/Instruments-3d/FG1000/EIS into your aircraft Nasal directory. Re-name EIS-c182t.nas to something sensible (e.g. EIS-[aircraft].nas). Don't forget to rename the class itself! | # Copy Aircraft/Instruments-3d/FG1000/EIS into your aircraft Nasal directory. Re-name EIS-c182t.nas to something sensible (e.g. EIS-[aircraft].nas). Don't forget to rename the class itself! | ||
# Copy one of the EIS .svg files from Aircraft/Instruments-3d/FG1000/MFDPages into your aircraft Nasal. Modify it as required, noting the names of objects and how they map to the EIS.nas file. | # Copy one of the EIS .svg files from Aircraft/Instruments-3d/FG1000/MFDPages into your aircraft Nasal. Modify it as required, noting the names of objects and how they map to the EIS.nas file. | ||
# Edit the SVG and EIS-[aircraft].nas as appropriate. In particular note that the Fuel submenu is used to set the contents of the fuel tanks manually, with a fuel totalizer approach. | |||
# Copy Aircraft/Instruments-3d/FG1000/Nasal/Interfaces/GenericEISPublisher.nas into your Nasal directory, and rename it (e.g. [aircraft]EISPublisher.nas. Don't forget to rename the class itself! Modify it to publish the correct set of properties to Emesary. Note that for multiple engine aircraft you need to modify the publish() method. | # Copy Aircraft/Instruments-3d/FG1000/Nasal/Interfaces/GenericEISPublisher.nas into your Nasal directory, and rename it (e.g. [aircraft]EISPublisher.nas. Don't forget to rename the class itself! Modify it to publish the correct set of properties to Emesary. Note that for multiple engine aircraft you need to modify the publish() method. | ||
# Copy Aircraft/Instruments-3d/FG1000/Nasal/Interfaces/GenericInterfaceController.nas into your Nasal directory, and rename it (e.g. [aircraft]InterfaceController.nas). Modify it to refer to your new [aircraft]EISPublisher. | # Copy Aircraft/Instruments-3d/FG1000/Nasal/Interfaces/GenericInterfaceController.nas into your Nasal directory, and rename it (e.g. [aircraft]InterfaceController.nas). Modify it to refer to your new [aircraft]EISPublisher. | ||
Line 149: | Line 150: | ||
var fg1000system = fg1000.FG1000.getOrCreateInstance(EIS_Class:EIS_Class, EIS_SVG:"Nasal/EIS.svg); | var fg1000system = fg1000.FG1000.getOrCreateInstance(EIS_Class:EIS_Class, EIS_SVG:"Nasal/EIS.svg); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Add multikey support === | |||
Include <code>Aircraft/Instruments-3d/FG1000/fg1000-multikey.xml</code> in your -set.xml file to support multikey. | |||
<syntaxhighlight lang="xml"> | |||
<input> | |||
<keyboard n="0"> | |||
<multikey include="Aircraft/Instruments-3d/FG1000/fg1000-multikey.xml"/> | |||
</keyboard> | |||
<input> | |||
</syntaxhighlight> | |||
See [[Howto:Add_multi-key_commands_to_an_aircraft]] for further details. | |||
=== Load and start the FG1000 system === | === Load and start the FG1000 system === |