• 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.

key events for MFD

Messages
43
Country
germany
Does anyone know if there are any key events for manipulating the default MFD like in the a321?

you know, range knob, display mode, etc.

thanks.
 
Why not simply hijack the G1000_MFD commands to control your MFD?
 
No. I misunderstood your question. That would only work if you were building your own virtual cockpit model and MFD gauge.
 
OK, I have looked into the A321 default gauge "pfd_mfd_select_panel.xml" inside "Airbus_A321.cab".

Here an example of the Mode knob - it uses the var L: Display Mode. So this is a local variable. But the MFD has an xml file of its own. It also uses the same var name. How do these to interact? It must be possible to get in there, I reckon...

Code:
<MouseArea id="Increment">
                    <FloatPosition>19.000,0.000</FloatPosition>
                    <Size>19,38</Size>
                    <CursorType>UpArrow</CursorType>
                    <MouseClick id="MouseClick">
						<Script>(L:Display Mode, number) ++ s0 4 &lt; if{ l0 (&gt;L:Display Mode, number) }</Script>
                        <ClickRepeat>True</ClickRepeat>
                    </MouseClick>
                </MouseArea>

Code:
<Element id="Display Mode Knob">
            <FloatPosition>60.000,40.000</FloatPosition>
            <Select id="Select">
                <Expression id="Expression">
                    <Minimum>0.000</Minimum>
                    <Maximum>3.000</Maximum>
                    <Script>(L:Display Mode, number)</Script>
                </Expression>
                <Case id="Case">
                    <ExpressionResult>0</ExpressionResult>
					<Image id="Image" Name="pfd_mfd_select_panel_knob_2_ls.bmp">
						<Transparent>True</Transparent>
					</Image>
				</Case>
                <Case id="Case">
                    <ExpressionResult>1</ExpressionResult>
					<Image id="Image" Name="pfd_mfd_select_panel_knob_2_vor.bmp">
						<Transparent>True</Transparent>
					</Image>
				</Case>
                <Case id="Case">
                    <ExpressionResult>2</ExpressionResult>
					<Image id="Image" Name="pfd_mfd_select_panel_knob_2_nav.bmp">
						<Transparent>True</Transparent>
					</Image>
				</Case>
                <Case id="Case">
                    <ExpressionResult>3</ExpressionResult>
					<Image id="Image" Name="pfd_mfd_select_panel_knob_2_arc.bmp">
						<Transparent>True</Transparent>
					</Image>
				</Case>
			</Select>		 
        </Element>

Code:
mfd.xml
       <CustomDrawParam Name="Heading">
            <Value> (L:Display Mode, number) 2 == if{ (A:GPS GROUND TRUE TRACK, Radians) } els{ 0 }</Value>
          </CustomDrawParam>
 
Just in case someone wants to know:

It is very easy. All I had to do was create a small gauge that would manipulate the L: var used in the mfd.xml. In this example switching the autopilot on/off would switch the mfd display to showing NDBs/VORs.

Code:
<Gauge Name="A321_MFD_PFD_Panel" Version="1.0">  <!--manipulates mfd and pfd display in A321 panel-->
<Size X="400" Y="300" />
    <!-- K E I N E   U M L A U T E   V E R W E N D E N-->
<Update Frequency="18" Hidden="No">
18 (>L:RecorderSkipCycles, enum)	<!-- Number of Update Cycles to skip (18=1sec) -->

	(L:NumberOfCyclesSkipped, enum) ++ (>L:NumberOfCyclesSkipped, enum)   <!--increment counter-->
	(L:NumberOfCyclesSkipped, enum) (L:RecorderSkipCycles, enum) >=        <!--counter reaches limit-->
	  if{


        (A:AUTOPILOT MASTER, bool) 1 ==               <!--test: when AP switched on, change displayed items-->
         if{
                2 (&gt;L:MapItem Shown, number)       <!--this local variable is also used in the default mfd.xml-->
         }
         els{
                1 (&gt;L:MapItem Shown, number)
         }


    }   <!--if number of cycles-->
</Update>
 </Gauge>
 
Back
Top