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.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

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

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.

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.

Share this post


Link to post
Share on other sites

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

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