<PropertyList>
  <sim>
    <description>ATC - Multilingual</description>
    <author>Joe Emmerich, Rob Shearman, Syd Adams, Csaba Halasz</author>
    <status>production</status>
    <flight-model>null</flight-model>
    <aero></aero>
    <fuel-fraction>0</fuel-fraction>

    <model>
      <path>Aircraft/ATC-ML/ATC-ML.xml</path>
    </model>
    <panel>
      <path>Aircraft/ATC-ML/panel.xml</path>
      <visibility>true</visibility>
    </panel>
    <instrumentation>
      <path>Aircraft/ATC-ML/radars.xml</path>
    </instrumentation>
    <chase-distance-m>0</chase-distance-m>

    <view n="0">
      <config>
        <limits>
          <enabled type="bool">false</enabled>
        </limits>
      </config>
    </view>

    <view n="100">
      <name>ATC View</name>
      <type>lookat</type>
      <internal type="bool">false</internal>
      <config>
        <from-model type="bool">true</from-model>
        <from-model-idx type="int">0</from-model-idx>
        <ground-level-nearplane-m type="double">5.0f</ground-level-nearplane-m>
        <default-field-of-view-deg type="double">55.0</default-field-of-view-deg>
        <default-pitch-deg type="double">0</default-pitch-deg>
        <default-heading-deg type="double">0</default-heading-deg>
        <front-direction-deg type="double">0</front-direction-deg>
        <target-lat-deg-path>/sim/atc/target-lat</target-lat-deg-path>
        <target-lon-deg-path>/sim/atc/target-lon</target-lon-deg-path>
        <target-alt-ft-path>/sim/atc/target-alt</target-alt-ft-path>
      </config>
    </view>

    <current-view>
      <view-number>100</view-number>
    </current-view>

    <multiplay>
      <chat_display>1</chat_display>
    </multiplay>

    <atc>
      <target-id type="string"></target-id>
      <target-alt type="double">0</target-alt>
      <target-number type="int">-1</target-number>
      <target-range type="double">0</target-range>
    </atc>

    <gui>
      <current-style>1</current-style>
      <style n="1">
				<fonts><gui><name type="string">FIXED_8x13</name></gui></fonts>
        <colors>
					<input>
						<red type="float">0.3</red>
						<green type="float">0.3</green>
						<blue type="float">0.3</blue>
						<alpha type="float">1.0</alpha>
					</input>
          <input-misc>
            <blue>0.8</blue>
            <green>0.8</green>
            <red>0.8</red>
          </input-misc>
          <input-legend>
            <blue>0.8</blue>
            <green>0.8</green>
            <red>0.8</red>
          </input-legend>
        </colors>
      </style>
    </gui>

    <help>
      <title>View, Scope, Target, and Chat Controls</title>
      <key>
              <name>Ctrl-F</name>
              <desc>Font selector</desc>
      </key>

<!-- View Controls -->

      <key>
        <name>Shift-P</name>
        <desc>Full Screen Window View</desc>
      </key>
      <key>
        <name>Ctrl-A</name>
        <desc>Raise Tower View</desc>
      </key>
      <key>
        <name>Ctrl-Z</name>
        <desc>Lower Tower View</desc>
      </key>

<!-- Radar Screen Controls -->

      <key>
        <name>GREEN BUTTONS</name>
        <desc>Select Range, Activate/Rotate/Offset Localizer Guideline</desc>
      </key>
      <key>
        <name>Ctrl-L</name>
        <desc>Toggle Localizer Guideline</desc>
      </key>
      <key>
        <name>Ctrl-G</name>
        <desc>Offset Localizer Guideline Left</desc>
      </key>
      <key>
        <name>Ctrl-H</name>
        <desc>Offset Localizer Guideline Right</desc>
      </key>
      <key>
        <name>Ctrl-J</name>
        <desc>Rotate Localizer Guideline Left</desc>
      </key>
      <key>
        <name>Ctrl-K</name>
        <desc>Rotate Localizer Guideline Right</desc>
      </key>

<!-- Target Controls -->

      <key>
        <name>BLUE BUTTONS</name>
        <desc>Target Tracking on/off, Select Target</desc>
      </key>
      <key>
        <name>Ctrl-T</name>
        <desc>Toggle Visual Target Tracking</desc>
      </key>

<!-- Chat Controls -->

      <key>
        <name>PURPLE BUTTONS</name>
        <desc>Shortcuts for ATC Commands via MP Chat</desc>
      </key>
      <key>
        <name>t</name>
        <desc>Initiate Chat Message to Selected Target</desc>
      </key>
    </help>
  </sim>

  <instrumentation>
    <radar>
      <switch type="string" archive="y">ON</switch>
      <mode-control type="int" archive="y">1</mode-control>
      <display-controls>
        <WX type="bool" archive="y">false</WX>
        <pos type="bool" archive="y">true</pos>
        <data type="bool" archive="y">true</data>
        <symbol type="bool" archive="y">true</symbol>
      </display-controls>
      <serviceable type="bool">true</serviceable>
      <range type="int" archive="y">1</range>
      <mode type="string" archive="y">WX</mode>
      <lightning type="bool" archive="y">true</lightning>
      <display-mode type="string" archive="y">plan</display-mode>
      <minimized type="bool" archive="y">false</minimized>
      <heading-marker type="bool" archive="y">false</heading-marker>
      <limit-deg type="int">180</limit-deg>
      <font>
        <name type="string">typewriter.txf</name>
        <size type="float">4</size>
        <line-spacing type="float">0.25</line-spacing>
        <color>
          <red type="float">0</red>
          <green type="float">0.8</green>
          <blue type="float">0</blue>
          <alpha type="float">1</alpha>
        </color>
      </font>
    </radar>
  </instrumentation>

  <nasal>
    <ATC>
      <file>Aircraft/ATC-ML/ATC-ML.nas</file>
    </ATC>
  </nasal>

  <input>
    <keyboard>
      <key n="6">
		  <name>Ctrl-F</name>
		  <desc>Font selector</desc>
		  <binding>
		          <command>nasal</command>
		          <script>globals.ATC.select_atc_font();</script>
		  </binding>
      </key>
      <key n="20">
        <name>Ctrl-T</name>
        <desc>Toggle visual target tracking</desc>
        <binding>
          <command>nasal</command>
          <script>globals.ATC.toggle_tracking();</script>
        </binding>
      </key>
      <key n="1">
        <name>Ctrl-A</name>
        <desc>Raise tower view</desc>
        <binding>
          <command>nasal</command>
          <script>globals.ATC.adjust_alt(10);</script>
        </binding>
      </key>
      <key n="26">
        <name>Ctrl-Z</name>
        <desc>Lower tower view</desc>
        <binding>
          <command>nasal</command>
          <script>globals.ATC.adjust_alt(-10);</script>
        </binding>
      </key>
      <key n="12">
        <name>Ctrl-L</name>
        <desc>Toggle Localizer Guideline</desc>
        <binding>
          <command>nasal</command>
          <script>globals.ATC.toggle_localizer();</script>
        </binding>
      </key>

      <key n="116">
        <name>t</name>
        <desc>Send Message to Target</desc>
        <binding><command>nasal</command></binding>
		<binding><command>nasal</command><script>globals.ATC.def_cmd_target(2-1)</script></binding>
      </key> 

<!-- ============= v je 12/2009 v ============= -->
      <key n="356">
          <name>Left</name>
          <desc>Prev target</desc>
          <binding>
              <command>nasal</command>
              <script>globals.ATC.step_target(-1);</script>
          </binding>
      </key>
      <key n="358">
          <name>Right</name>
          <desc>Next target</desc>
          <binding>
              <command>nasal</command>
              <script>globals.ATC.step_target(1);</script>
          </binding>
      </key>
      <key n="357">
          <name>Up</name>
          <desc>Radar range increase</desc>
          <binding>
              <command>nasal</command>
              <script>globals.ATC.step_radar_range(1);</script>
          </binding>
          <binding>
              <command>nasal</command>
          		<script>setprop("sim/atc/localizer-offset-display",(getprop("/sim/atc/localizer-offset"))/(getprop("/instrumentation/radar/range")))</script>
          </binding>
      </key>
      <key n="359">
          <name>Down</name>
          <desc>Radar range decrease</desc>
          <binding>
              <command>nasal</command>
              <script>globals.ATC.step_radar_range(-1);</script>
          </binding>
          <binding>
              <command>nasal</command>
          		<script>setprop("sim/atc/localizer-offset-display",(getprop("/sim/atc/localizer-offset"))/(getprop("/instrumentation/radar/range")))</script>
          </binding>
      </key>
<!-- ============= ^ je 12/2009 ^ ============= -->
    </keyboard>
  </input>
</PropertyList>
