Jump to content
Sign in to follow this  
Guest harry3

XML Gauge question...

Recommended Posts

Hi,Can someone explain how I can make an XML toggle-gauge (like the simicons) which will open a window-A and closes at the same time window-B.I would like to be able to swap between captain and 1stOfficer panel.If the 1stOfficer panel is opened, the captains panel should close and vise versa.


Location: Vleuten, The Netherlands, 15.7dme EHAM
System: AMD 7800X3D - X670 Mobo - RTX 4090 - 32GB 6000MHz DDR5 - Corsair RM1000x PSU - 2 x 2TB SSD - 32" 1440p Display - Windows 11

Share this post


Link to post
Share on other sites

>Hi,>>Can someone explain how I can make an XML toggle-gauge (like>the simicons) which will open a window-A and closes at the>same time window-B.>I would like to be able to swap between captain and 1stOfficer>panel.>If the 1stOfficer panel is opened, the captains panel should>close and vise versa.That's probably the simplest gauge one could make... :)- - Toggle Co-Pilot's Window50 (>K:PANEL_ID_TOGGLE) 0 (>K:PANEL_ID_TOGGLE)The action is in the line. What that is doing is toggling ON the [WindowXX] section with ident=50 and toggling OFF the [WindowXX] section with ident=0Simply substitute whatever ident= number is used with your "co-pilot's window."


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Hi >> That's probably the simplest gauge one could make... :) <


Location: Vleuten, The Netherlands, 15.7dme EHAM
System: AMD 7800X3D - X670 Mobo - RTX 4090 - 32GB 6000MHz DDR5 - Corsair RM1000x PSU - 2 x 2TB SSD - 32" 1440p Display - Windows 11

Share this post


Link to post
Share on other sites

Uhhhhrrrrr...I must be doing something wrong because it doesn't work for me...Captains ident = 10000 (is already visible on startup)Co_Pilot ident = 10010 10010 (>K:PANEL_ID_TOGGLE) 10000 (>K:PANEL_ID_TOGGLE) When I press the icon, the Co-Pilot panel is opened, but the Captain panel remains open.


Location: Vleuten, The Netherlands, 15.7dme EHAM
System: AMD 7800X3D - X670 Mobo - RTX 4090 - 32GB 6000MHz DDR5 - Corsair RM1000x PSU - 2 x 2TB SSD - 32" 1440p Display - Windows 11

Share this post


Link to post
Share on other sites

>Uhhhhrrrrr...>>I must be doing something wrong because it doesn't work for>me...>Captains ident = 10000 (is already visible on startup)>Co_Pilot ident = 10010 >>10010 (>K:PANEL_ID_TOGGLE) 10000>(>K:PANEL_ID_TOGGLE) >>When I press the icon, the Co-Pilot panel is opened, but the>Captain panel remains open.I suspect it may because of the "non-standard" ident you are using for [Window00]. Try using either ident=MAIN_PANEL or ident=0 as those are the expected default entries for that particular [WindowXX] entry.


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Hi Bill,>> Try using ident=MAIN_PANEL <


Location: Vleuten, The Netherlands, 15.7dme EHAM
System: AMD 7800X3D - X670 Mobo - RTX 4090 - 32GB 6000MHz DDR5 - Corsair RM1000x PSU - 2 x 2TB SSD - 32" 1440p Display - Windows 11

Share this post


Link to post
Share on other sites
Guest bartels

Instead of PANEL_ID_TOGGLE it is sometimes suitable to use PANEL_ID_OPEN and PANEL_ID_CLOSE. It gives a better control if e.g. both windows are open. You need of course different gauges for main and copilot panel.Arne Bartels

Share this post


Link to post
Share on other sites
Guest harry3

Try this; it opens Panel 0 while closing Panel 80, or vice versa!Panel icon(L:status,bool) if{ 0 (>K:PANEL_ID_OPEN) 80 (>K:PANEL_ID_CLOSE) } els{ 80 (>K:PANEL_ID_OPEN) 0 (>K:PANEL_ID_CLOSE) } (L:status,bool) ! (>L:status,bool) Regards,Harry

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...