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

XML Dynamic Mouse Areas...

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
I'll be dipped in lard and fried for chicken!

I became aware of something I honestly have thought couldn't be done, that is to have Mouse Areas in an XML gauge be <Visible> on demand!

"Let me 'splain Lucy..."

I've been coding and scripting a mixed set of C gauges and XML "gauges" for ABACUS's forthcoming revision of the B787. There are four massive LCD screens on the main panel:

PFD Pilot - ND/EICAS - MFD - PFD Copilot

Now for the wide-screen version it is possible to have the PFD Pilot - ND/EICAS and MFD on screen all the time on the 2d panel. The problem I have is that the normal width 2d isn't wide enough, and part of the MFD would be "off screen."

Well, I thought, wouldn't it be cool to have a reversionary mode where the ND/EICAS and MFD could be swapped in realtime! That would solve the problem.

Swapping the screens is no big whoop, but swapping the Mouse Areas, that would be a problem. So, with some hesitation, I went ahead and cautiously tested an idea I had something last night when dreaming...

What if I added a <Visible> condition to the Mouse Area(s)? Whould that work? Well, as it turns out it does work...

....at least using FS9 XML syntax in FSX it does! Here is an example showing two identical Mouse Areas that are active depending on the value of (L:EICAS,bool)... :D
Code:
<Area Left="222" Top="52" Width="168" Height="33">
		<Visible>(L:B787 EICAS,bool) 0 ==</Visible>
		<Cursor Type="Hand"/>
		<Click Kind="LeftSingle">
			1 (&gt;L:B787 NDMapPlan, bool)
			1 (>L:B787 NDFPL,bool)
		</Click>
</Area>

<Area Left="222" Top="52" Width="168" Height="33">
		<Visible>(L:B787 EICAS,bool) 1 ==</Visible>
		<Tooltip>MENU Select</Tooltip>
		<Cursor Type="Hand"/>
		<Click Kind="LeftSingle">
			(L:B787 Map2MenuActive,bool) ! (&gt;L:B787 Map2MenuActive,bool)
		</Click>
</Area>

b787project000001.jpg
 
Last edited:
Hi Bill
Thanks for that :)I was just about to ask if it where possible
Cheers
Wozza
 
Back
Top