February 9, 200422 yr 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, 17.3dme SPL 108.40 | Simulator: FS2024 System: AMD 7800X3D - Gigabyte X670 - RTX 4090 - 64GB DDR5 - 2 x 2TB SSD - 32" 1440p Display - Windows 11 Pro
February 9, 200422 yr Moderator >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
February 9, 200422 yr Hi >> That's probably the simplest gauge one could make... :) < Location: Vleuten, The Netherlands, 17.3dme SPL 108.40 | Simulator: FS2024 System: AMD 7800X3D - Gigabyte X670 - RTX 4090 - 64GB DDR5 - 2 x 2TB SSD - 32" 1440p Display - Windows 11 Pro
February 9, 200422 yr 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, 17.3dme SPL 108.40 | Simulator: FS2024 System: AMD 7800X3D - Gigabyte X670 - RTX 4090 - 64GB DDR5 - 2 x 2TB SSD - 32" 1440p Display - Windows 11 Pro
February 9, 200422 yr Moderator >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
February 9, 200422 yr Hi Bill,>> Try using ident=MAIN_PANEL < Location: Vleuten, The Netherlands, 17.3dme SPL 108.40 | Simulator: FS2024 System: AMD 7800X3D - Gigabyte X670 - RTX 4090 - 64GB DDR5 - 2 x 2TB SSD - 32" 1440p Display - Windows 11 Pro
February 9, 200422 yr 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
February 11, 200422 yr 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
Create an account or sign in to comment