• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

P3D v3 XMl script doctor needed

Messages
43
Country
unitedkingdom
Hi, I have been trying to update the MFD on the default B747 and have run into a few problems, and would be grateful for help on any or all of them. I have posted the code below.

1st problem

On the EFIS the vor/adf buttons are switched over. It was like this from the beginning, not sure if it has anything to do with using P3D, I copied the aircraft over from FSX. I have looked at the code but it all looks in order. L button shows 2 and R button shows 1, even the BMP's and tooltips. Edited code below;

Code:
-----------------------------------------------
        <Element id="VOR ADF 1">
            <FloatPosition>4.000,31.000</FloatPosition>
            <Select id="Select">
                <Expression id="Expression">
                    <Minimum>0.000</Minimum>
                    <Maximum>2.000</Maximum>
                    <Script>(L:EFIS VORADF1,number)</Script>
                </Expression>
                <Case id="Case">
                    <ExpressionResult>2</ExpressionResult>  
                    <Image id="Image" Name="efis_control_panel_switch_vor_adf_1_vor.bmp">
                        <Transparent>True</Transparent>
                    </Image>
                </Case>
                <Case id="Case">
                    <ExpressionResult>1</ExpressionResult>
                    <Image id="Image" Name="efis_control_panel_switch_vor_adf_1_off.bmp">
                        <Transparent>True</Transparent>
                    </Image>
                </Case>
                <Case id="Case">
                    <ExpressionResult>0</ExpressionResult>
                    <Image id="Image" Name="efis_control_panel_switch_vor_adf_1_adf.bmp">
                        <Transparent>True</Transparent>
                    </Image>
                  </Case>
            </Select>        
       </Element>
       
        <Element id="VOR ADF 2">
            <FloatPosition>124.000,31.000</FloatPosition>
            <Select id="Select">
                <Expression id="Expression">
                    <Minimum>0.000</Minimum>
                    <Maximum>2.000</Maximum>
                    <Script>(L:EFIS VORADF2,number)</Script>
                </Expression>
                <Case id="Case">
                    <ExpressionResult>2</ExpressionResult>  
                    <Image id="Image" Name="efis_control_panel_switch_vor_adf_2_vor.bmp">
                        <Transparent>True</Transparent>
                    </Image>
                </Case>
                <Case id="Case">
                    <ExpressionResult>1</ExpressionResult>
                    <Image id="Image" Name="efis_control_panel_switch_vor_adf_2_off.bmp">
                        <Transparent>True</Transparent>
                    </Image>
                </Case>
                <Case id="Case">
                    <ExpressionResult>0</ExpressionResult>
                    <Image id="Image" Name="efis_control_panel_switch_vor_adf_2_adf.bmp">
                        <Transparent>True</Transparent>
                    </Image>
                  </Case>
            </Select>        
        </Element>
       
       ------------------------------

        <MouseArea id="MouseArea">
        <FloatPosition>0.000,0.000</FloatPosition>
        <Size>143,76</Size>

            <MouseArea id="VOR ADF 1 Switch">
            <FloatPosition>1.000,25.000</FloatPosition>
            <Size>19,34</Size>
            <CursorType>Hand</CursorType>

                <MouseArea id="Decrement">
                <FloatPosition>0.000,0.000</FloatPosition>
                <Size>19,17</Size>
                <CursorType>DownArrow</CursorType>
                <MouseClick id="MouseClick">
                <Script> (L:EFIS VORADF1,number) 1 - s0 0 &lt; if{ 0 } els{ l0 } (&gt;L:EFIS VORADF1,number)
                </Script>
                <ClickRepeat>True</ClickRepeat>
                </MouseClick>
                <Tooltip id="Tooltip">
                <DefaultId>TOOLTIPTEXT_B737_POINTER1</DefaultId>
                </Tooltip>
                  </MouseArea>
     
                  <MouseArea id="Increment">
                <FloatPosition>0.000,17.000</FloatPosition>
                <Size>19,17</Size>
                <CursorType>UpArrow</CursorType>
                <MouseClick id="MouseClick">
                 <Script>
                (L:EFIS VORADF1,number) ++ s0 2 &gt; if{ 2 } els{ l0 } (&gt;L:EFIS VORADF1,number)
                 </Script>
                 <ClickRepeat>True</ClickRepeat>
                </MouseClick>
                <Tooltip id="Tooltip">
                <DefaultId>TOOLTIPTEXT_B737_POINTER1</DefaultId>
                </Tooltip>
                 </MouseArea>

            </MouseArea>
           
            <MouseArea id="VOR ADF 2 Switch">
              <FloatPosition>119.000,25.000</FloatPosition>
            <Size>22,34</Size>
            <CursorType>Hand</CursorType>

                    <MouseArea id="Decrement">
                    <FloatPosition>0.000,0.000</FloatPosition>
                    <Size>22,17</Size>
                    <CursorType>DownArrow</CursorType>
                    <MouseClick id="MouseClick">
                     <Script>
                    (L:EFIS VORADF2,number) 1 - s0 0 &lt; if{ 0 } els{ l0 } (&gt;L:EFIS VORADF2,number)
                      </Script>
                      <ClickRepeat>True</ClickRepeat>
                    </MouseClick>
                    <Tooltip id="Tooltip">
                    <DefaultId>TOOLTIPTEXT_B737_POINTER2</DefaultId>
                    </Tooltip>
                    </MouseArea>

                      <MouseArea id="Increment">
                        <FloatPosition>0.000,17.000</FloatPosition>
                        <Size>22,17</Size>
                        <CursorType>UpArrow</CursorType>
                        <MouseClick id="MouseClick">
                          <Script>(L:EFIS VORADF2,number) ++ s0 2 &gt; if{ 2 } els{ l0 } (&gt;L:EFIS VORADF2,number)
                    </Script>
                          <ClickRepeat>True</ClickRepeat>
                        </MouseClick>
                    <Tooltip id="Tooltip">
                    <DefaultId>TOOLTIPTEXT_B737_POINTER2</DefaultId>
                    </Tooltip>
                        </MouseArea>

                </MouseArea>
-------------------------------------------------------------           

      <MouseArea id="Map Display options">
        <FloatPosition>8,59</FloatPosition>
        <Size>129,14</Size>
        <MouseArea id="WPT">
          <FloatPosition>38,0</FloatPosition>
          <Size>16,14</Size>
          <CursorType>Hand</CursorType>
          <MouseClick>
            <Script>
              0 (&gt;L:MapItem Shown, number)
            </Script>
          </MouseClick>
          <Tooltip id="Tooltip">
            <DefaultId>TOOLTIPTEXT_B737_EFIS_SHOW_WAYPOINTS</DefaultId>
          </Tooltip>
        </MouseArea>
        <MouseArea id="ARPT">
          <FloatPosition>57,0</FloatPosition>
          <Size>16,14</Size>
          <CursorType>Hand</CursorType>
          <MouseClick>
            <Script>
              1 (&gt;L:MapItem Shown, number)
            </Script>
          </MouseClick>
          <Tooltip id="Tooltip">
            <DefaultId>TOOLTIPTEXT_B737_EFIS_SHOW_AIRPORTS</DefaultId>
          </Tooltip>
        </MouseArea>
        <MouseArea id="NDB">
          <FloatPosition>76,0</FloatPosition>
          <Size>16,14</Size>
          <CursorType>Hand</CursorType>
          <MouseClick>
            <Script>
              2 (&gt;L:MapItem Shown, number)
            </Script>
          </MouseClick>
           <Tooltip id="Tooltip">
            <DefaultId>TOOLTIPTEXT_B737_EFIS_SHOW_NDB</DefaultId>
          </Tooltip>
       </MouseArea>
        <MouseArea id="VOR">
          <FloatPosition>95,0</FloatPosition>
          <Size>16,14</Size>
          <CursorType>Hand</CursorType>
          <MouseClick>
            <Script>
              3 (&gt;L:MapItem Shown, number)
            </Script>
          </MouseClick>
           <Tooltip id="Tooltip">
            <DefaultId>TOOLTIPTEXT_B737_EFIS_SHOW_VOR</DefaultId>
          </Tooltip>
        </MouseArea>
      </MouseArea>
     </MouseArea>
    </SimGauge.Gauge>
</SimBase.Document>

continued in next message.
 
and the edited code for the MFD;

Code:
--------------------------------------------------------

    <Element id="Centered Map">
      <FloatPosition>0.0000,0.0000</FloatPosition>
      <Visibility>
                (L:EFIS Mode, number) 2 == d (L:MFD Centered, number) 1 == &amp;&amp; d (A:CIRCUIT GENERAL PANEL ON, bool) &amp;&amp;
            </Visibility>
      <MaskImage id="mfd_centered_map_mask.bmp" Name="mfd_centered_map_mask.bmp"></MaskImage>
      <CustomDraw id="CustomDraw" Name="fs9gps:map">
        <Size>260,260</Size>
        <Bright>True</Bright>
        <CustomDrawParam id="CustomDrawParam" Name="BackgroundColor">
          <Value>0x000000&gt;</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="X">
          <Value>@MapWidthCentered</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="Y">
          <Value>@MapHeightCentered</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="CenterX">
          <Value>@MapWidthCentered 2 /</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="CenterY">
          <Value>@MapHeightCentered 2 /</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="Zoom">
          <Value>@RangeMiles 1852 *</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="Latitude">
          <Value>(A:GPS POSITION LAT, Radians)</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="Longitude">
          <Value>(A:GPS POSITION LON, Radians)</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="Heading">
          <Value>(A:GPS GROUND TRUE TRACK, Radians)</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="LayerIntersections">
          <Value>0 (L:MapItem Shown, number) ==</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="LayerAirports">
          <Value>1 (L:MapItem Shown, number) ==</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="LayerNDBs">
          <Value>2 (L:MapItem Shown, number) ==</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="LayerVORs">
          <Value>3 (L:MapItem Shown, number) ==</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="LayerTerrain">
          <Value>4 (L:MapItem Shown, number) ==</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="DetailLayerTerrain">
          <Value>4 (L:MapItem Shown, number) ==</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="LayerRangeRings">
          <Value>3 (L:Efis Mode, number) ==</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="LayerFlightPlan">
          <Value>1</Value>
        </CustomDrawParam>
        <CustomDrawParam id="ObjectDetailLayerAirports" Name="ObjectDetailLayerAirports">
          <Value>0x4F</Value>
        </CustomDrawParam>
      </CustomDraw>
    </Element>
    <Element id="MFD - Centered">
      <FloatPosition>0.0000,0.0000</FloatPosition>
      <Visibility>
                (L:MFD Centered, number) 1 == d (A:CIRCUIT GENERAL PANEL ON, bool) &amp;&amp;
            </Visibility>
-------------------------------------------------------------------

      <Element id="ILS 1 Information - Top Right">
        <FloatPosition>0.0000,0.0000</FloatPosition>
        <Element id="ILS 1 Legend">
          <FloatPosition>176.0000,4.0000</FloatPosition>
          <Visibility>(A:GPS DRIVES NAV1, bool) !</Visibility>
          <GaugeText id="ILS 1 Legend">
            <Bright>True</Bright>
            <FontColor>0x01E00D</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%(A:NAV HAS GLIDE SLOPE, bool)%{if}ILS 1%{else}VOR 1%{end}</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
        <Element id="ILS 1 Ident">
          <FloatPosition>206.0000,4.0000</FloatPosition>
          <GaugeText id="ILS 1 Ident">
            <Bright>True</Bright>
            <FontColor>magenta</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%((A:GPS DRIVES NAV1, bool)) %{if}%((A:GPS WP NEXT ID, string))%!s! %{else}\{clr2}%((A:Nav1 ident, string))%!s! </GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
            <AlternateColor id="AlternateColor">
            <FontColor>White</FontColor>
            </AlternateColor>
          </GaugeText>
        </Element>
        <Element id="ILS 1 CRS">
          <FloatPosition>206.0000,17.0000</FloatPosition>
          <GaugeText id="ILS 1 CRS">
            <Bright>True</Bright>
            <FontColor>white</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%((A:GPS DRIVES NAV1, bool)) %{if}%((A:GPS WP ETA, string))%!0.2f! z %{else}%CRS %((A:NAV1 OBS, degrees))%!03d!</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
        <Element id="DME">
          <FloatPosition>206.0000,30.0000</FloatPosition>
          <GaugeText id="DME">
            <Bright>True</Bright>
            <FontColor>white</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%((A:HSI distance, nmiles)) %(s1 0 &gt;=)%{if}%(l1 100 &gt;=)%{if}%(l1)%!d!%{else}%(l1)%!0.1f!%{end}%{else}----%{end} Nm</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
      </Element>
    </Element>
    <Element id="Expanded - Background">
      <FloatPosition>0.0000,0.0000</FloatPosition>
      <Visibility>
                (L:MFD Centered, number) 0 == d (A:CIRCUIT GENERAL PANEL ON, bool) &amp;&amp;
            </Visibility>
      <Image id="mfd_expanded_background_on.bmp" Name="mfd_expanded_background_on.bmp">
        <Transparent>True</Transparent>
        <Bright>True</Bright>
      </Image>
    </Element>
    <Element id="Expanded Map">
      <FloatPosition>0.0000,0.0000</FloatPosition>
      <Visibility>
                (L:EFIS Mode, number) 2 == d (L:MFD Centered, number) 0 == &amp;&amp; d (A:CIRCUIT GENERAL PANEL ON, bool) &amp;&amp;
            </Visibility>
      <MaskImage id="mfd_expanded_map_mask.bmp" Name="mfd_expanded_map_mask.bmp"></MaskImage>
      <CustomDraw id="CustomDraw" Name="fs9gps:map">
        <Size>260,260</Size>
        <Bright>True</Bright>
        <CustomDrawParam id="CustomDrawParam" Name="BackgroundColor">
          <Value>0x000000</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="X">
          <Value>@MapWidthExpanded</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="Y">
          <Value>@MapHeightExpanded</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="CenterX">
          <Value>@MapWidthExpanded 2 /</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="CenterY">
          <Value>@MapHeightExpanded</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="Zoom">
          <Value>@RangeMiles 1852 *</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="Latitude">
          <Value>(A:GPS POSITION LAT, Radians)</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="Longitude">
          <Value>(A:GPS POSITION LON, Radians)</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="Heading">
          <Value>(A:GPS GROUND TRUE TRACK, Radians)</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="LayerIntersections">
          <Value>0 (L:MapItem Shown, number) ==</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="LayerAirports">
<Value>1 (L:MapItem Shown, number) ==</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="LayerNDBs">
          <Value>2 (L:MapItem Shown, number) ==</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="LayerVORs">
          <Value>3 (L:MapItem Shown, number) == if { 0 (LayerVORs, Bool)== if { 1(>LayerVORs, Bool) }} else { 1 (LayerVORs, Bool)== if 1{(>LayerVORs, Bool) }}</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="LayerTerrain">
          <Value>4 (L:MapItem Shown, number) ==</Value>
        </CustomDrawParam>
        <CustomDrawParam id="CustomDrawParam" Name="DetailLayerTerrain">
          <Value>4 (L:MapItem Shown, number) ==</Value>
        </CustomDrawParam>
        <LayerRangeRings>1</LayerRangeRings>
        <CustomDrawParam id="CustomDrawParam" Name="LayerFlightPlan">
          <Value>1</Value>
        </CustomDrawParam>
        <CustomDrawParam id="ObjectDetailLayerAirports" Name="ObjectDetailLayerAirports">
          <Value>0x4F</Value>
        </CustomDrawParam>
      </CustomDraw>
    </Element>
    <Element id="MFD Expanded">
      <FloatPosition>0.0000,0.0000</FloatPosition>
      <Visibility>
                (L:MFD Centered, number) 0 == d (A:CIRCUIT GENERAL PANEL ON, bool) &amp;&amp;
            </Visibility>
----------------------------------------------------------

      <Element id="ILS 1 Information - Top Right">
        <FloatPosition>0.0000,0.0000</FloatPosition>
        <Element id="ILS 1 Legend">
          <FloatPosition>176.0000,4.0000</FloatPosition>
          <Visibility>(A:GPS DRIVES NAV1, bool) !</Visibility>
          <GaugeText id="ILS 1 Legend">
            <Bright>True</Bright>
            <FontColor>0x01E00D</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%(A:NAV HAS GLIDE SLOPE, bool)%{if}ILS 1%{else}VOR 1%{end}</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
        <Element id="ILS 1 Ident">
          <FloatPosition>206.0000,4.0000</FloatPosition>
          <GaugeText id="ILS 1 Ident">
            <Bright>True</Bright>
            <FontColor>magenta</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%((A:GPS DRIVES NAV1, bool)) %{if}%((A:GPS WP NEXT ID, string))%!s! %{else}\{clr2}%((A:Nav1 ident, string))%!s! </GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
            <AlternateColor id="AlternateColor">
            <FontColor>White</FontColor>
            </AlternateColor>
          </GaugeText>
        </Element>
        <Element id="ILS 1 CRS">
          <FloatPosition>206.0000,17.0000</FloatPosition>
          <GaugeText id="ILS 1 CRS">
            <Bright>True</Bright>
            <FontColor>white</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%((A:GPS DRIVES NAV1, bool)) %{if}%((A:GPS WP ETA, string))%!0.2f! z %{else}%CRS %((A:NAV1 OBS, degrees))%!03d!</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
        <Element id="DME">
          <FloatPosition>206.0000,30.0000</FloatPosition>
          <GaugeText id="DME">
            <Bright>True</Bright>
            <FontColor>white</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%((A:HSI distance, nmiles)) %(s1 0 &gt;=)%{if}%(l1 100 &gt;=)%{if}%(l1)%!d!%{else}%(l1)%!0.1f!%{end}%{else}----%{end} Nm</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
      </Element>
    </Element>
    <Element id="Text NAV data">
      <FloatPosition>0.0000,0.0000</FloatPosition>
      <Visibility>(A:CIRCUIT GENERAL PANEL ON, bool)</Visibility>
      <Element id="VOR 1 Information">
        <FloatPosition>0.0000,0.0000</FloatPosition>
        <Visibility>(L:EFIS VORADF1,number) 0 ==</Visibility>
        <Element id="VOR 1 Legend">
          <FloatPosition>4.0000,220.0000</FloatPosition>
          <GaugeText id="VOR 1 Legend">
            <Bright>True</Bright>
            <FontColor>0x01E00D</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%(A:NAV HAS GLIDE SLOPE, bool)%{if}ILS 1%{else}VOR 1%{end}</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
        <Element id="NAV 1 Ident">
          <FloatPosition>4.0000,233.0000</FloatPosition>
          <GaugeText id="NAV 1 Ident">
            <Bright>True</Bright>
            <FontColor>0x01E00D</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%((A:Nav1 ident, string))%!s!</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
        <Element id="DME">
          <FloatPosition>4.0000,246.0000</FloatPosition>
          <GaugeText id="DME">
            <Bright>True</Bright>
            <FontColor>0x01E00D</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>DME %((A:NAV1 DME, nmiles) 999 min 0 max s1 0 &gt;=)%{if}%(l1 100 &gt;=)%{if}%(l1)%!d!%{else}%(l1)%!0.1f!%{end}%{else}----%{end}</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
      </Element>
      <Element id="ADF 1 Information">
        <FloatPosition>0.0000,0.0000</FloatPosition>
        <Visibility>(L:EFIS VORADF1,number) 2 == </Visibility>
        <Element id="ADF 1 Legend">
          <FloatPosition>4.0000,220.0000</FloatPosition>
          <GaugeText id="ADF 1 Legend">
            <Bright>True</Bright>
            <FontColor>cyan</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>ADF 1</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
        <Element id="ADF 1 Ident">
          <FloatPosition>4.0000,233.0000</FloatPosition>
          <GaugeText id="ADF 1 Ident">
            <Bright>True</Bright>
            <FontColor>cyan</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%((A:Adf1 ident, string))%!s!</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
      </Element>
      <Element id="VOR 2 Information">
        <FloatPosition>206.0000,0.0000</FloatPosition>
        <Visibility>(L:EFIS VORADF2,number) 0 ==</Visibility>
        <Element id="VOR 2 Legend">
          <FloatPosition>0.0000,220.0000</FloatPosition>
          <GaugeText id="VOR 2 Legend">
            <Bright>True</Bright>
            <FontColor>0x01E00D</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%(A:NAV HAS GLIDE SLOPE, bool)%{if}ILS 2%{else}VOR 2%{end}</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
        <Element id="NAV 2 Ident">
          <FloatPosition>0.0000,233.0000</FloatPosition>
          <GaugeText id="NAV 2 Ident">
            <Bright>True</Bright>
            <FontColor>0x01E00D</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%((A:Nav2 ident, string))%!s!</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
        <Element id="DME">
          <FloatPosition>0.0000,246.0000</FloatPosition>
          <GaugeText id="DME">
            <Bright>True</Bright>
            <FontColor>0x01E00D</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>DME %((A:NAV2 DME, nmiles) 999 min 0 max s1 0 &gt;=)%{if}%(l1 100 &gt;=)%{if}%(l1)%!d!%{else}%(l1)%!0.1f!%{end}%{else}----%{end}</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
      </Element>
      <Element id="ADF 2 Information">
        <FloatPosition>206.0000,0.0000</FloatPosition>
        <Visibility>(L:EFIS VORADF2,number) 2 == </Visibility>
        <Element id="ADF 2 Legend">
          <FloatPosition>4.0000,220.0000</FloatPosition>
          <GaugeText id="ADF 2 Legend">
            <Bright>True</Bright>
            <FontColor>cyan</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>ADF 2</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
        <Element id="ADF 1 Ident">
          <FloatPosition>4.0000,233.0000</FloatPosition>
          <GaugeText id="ADF 1 Ident">
            <Bright>True</Bright>
            <FontColor>cyan</FontColor>
            <FontFace>Arial</FontFace>
            <FontHeight>12</FontHeight>
            <GaugeString>%((A:Adf1 ident, string))%!s!</GaugeString>
            <Size>60,13</Size>
            <Transparent>True</Transparent>
          </GaugeText>
        </Element>
      </Element>
    </Element>
    <MouseArea id="MouseArea">
      <FloatPosition>0.0000,0.0000</FloatPosition>
      <Size>260,260</Size>
      <MouseArea id="Full Size Me">
        <FloatPosition>0.0000,0.0000</FloatPosition>
        <Size>260,260</Size>
        <CursorType>Hand</CursorType>
        <MouseClick id="MouseClick">
          <Script> 501 (&gt;K:PANEL_ID_TOGGLE)</Script>
        </MouseClick>
        <Tooltip id="Tooltip">
          <DefaultId>TOOLTIPTEXT_GAUGE_MFD</DefaultId>
        </Tooltip>
      </MouseArea>
      <Tooltip id="Tooltip">
        <DefaultId>TOOLTIPTEXT_GAUGE_MFD</DefaultId>
      </Tooltip>
    </MouseArea>
  </SimGauge.Gauge>
</SimBase.Document>

OK, Problem number 2, is a bit more complicated but was trying to toggle the show VOR, ARPT, NDB etc. on the EFIS. I came up with some code for the VOR on the MFD end but doesn't seem to work. I know its a long shot but any help would be appreciated. I assumed that the MapItem number variable given by the EFIS could be used to switch the VOR symbol off and on. At the moment VORs are showing with NDB's on the NDB button only.

Problem number 3 is similar to Number 1. I added the 'top right' code from the VOR ident , that switches to ILS if there is a glideslope detected, to the VOR 1 and VOR 2 idents at the bottom of the MFD. Strangely when the top right shows NAV1, VOR2 shows ILS2 and when I go to centered view top right shows ILS1, VOR2 shows VOR2. Top right only shows NAV1 info and neither NAV1 or NAV2 were set to an ILS frequency. All idents are using identical code. Can't figure it out.

Thats all for the moment any help would be greatly appreciated!

Nick M
 
Last edited:
I believe that all "case" values have to have a decimal and three 0's like this:
Code:
<ExpressionResult>2.000</ExpressionResult>
 
Back
Top