June 5, 200916 yr Moderator 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 CopilotNow 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 <Area Left="222" Top="52" Width="168" Height="33"> <Visible>(L:B787 EICAS,bool) 0 ==</Visible> <Cursor Type="Hand"/> <Click Kind="LeftSingle"> 1 (>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) ! (>L:B787 Map2MenuActive,bool) </Click></Area> Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
June 5, 200916 yr Commercial Member I'll be dipped in lard and fried for chicken!Good job you live in Indiana and not Kentucky, Bill......-Dai
June 5, 200916 yr Bin using that for years Bill.....think FMC CDU keys. :(Ed, and you only now confess it to the dear Fr. ???He is DEVASTATED!!!(not - I bet he got a thrill of "discovering" it for himself)
June 6, 200916 yr Author Moderator Bin using that for years Bill.....think FMC CDU keys. :(Well, since I rarely - if every - think of FMC and XML at the same time... :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment