Current SPAD.neXt Release: 0.9.12.123

This forum has closed. Please join our Discord Community.

SPAD.neXt online services are no longer available for SPAD.neXt Versions < 0.9.11.5

How to turn panels on & off with a switch

General Discussions
Locked
Robs
Flight Attendant
Posts: 25
Joined: 21 Mar 2018, 20:16
Status: Offline

How to turn panels on & off with a switch

Post by Robs » 16 May 2019, 00:02

Hi Spadders,

What I would like to do is use a button to switch a pop up panel on an off.
This is a generic question as I have a number of panels I wish to switch on and off at times.

This specific panel is a GPS on panel 3. I'd like to switch this on or off with an on/off button.
(or view--> instruments --> gps (3rd one down)

I can use a button press to toggle this GPS using simconnect event "Panel_3" but I cannot figure out a way of on off as with a toggle there is no way to start in a know state (except loading a flight) but I would think someone must have a better way.

I have seen events Panel_ID_open and Panel_ID_close where I thought you would send a parameter (=ID) with the panel number you want but it didn't work when I tried.

Suggestions welcome. I hope to hear.

Rob

User avatar
thedazman
Betatester
Posts: 1808
Joined: 28 Mar 2015, 10:47
Location: United Kingdom
Contact:
Status: Offline

Re: How to turn panels on & off with a switch

Post by thedazman » 16 May 2019, 09:51

I cant find a way of querying the panel state either.

If you want this on a switch then you can add the toggle to both on and off, but there's no guarantee it wont go out of sequence with the actual switch position.

(will have a play will panel ID to see if I can fathom what those event do)

Daz
"theDAZman" aka "theGFXguy"
Image
https://fipgauges.com

User avatar
thedazman
Betatester
Posts: 1808
Joined: 28 Mar 2015, 10:47
Location: United Kingdom
Contact:
Status: Offline

Re: How to turn panels on & off with a switch

Post by thedazman » 16 May 2019, 10:31

apparently you should be able to put the Panel ID from the aircrafts Panel.cfg. so Panel_3 should match Panel.cfg

so in my case GPS Panel ID should = 2

[Window02]
size_mm=456,378
position=6
background_color=0,0,0
visible=1
ident=GPS_PANEL
window_size=0.715,0.730
sizeable=1
gauge00=KRON_fs9gps!gps_500WXF, 0,0


But you are correct it don't work still :-(

Daz
"theDAZman" aka "theGFXguy"
Image
https://fipgauges.com

Robs
Flight Attendant
Posts: 25
Joined: 21 Mar 2018, 20:16
Status: Offline

Re: How to turn panels on & off with a switch

Post by Robs » 16 May 2019, 14:54

Hi Daz,

Thanks for trying.
Yes I am living with the toggles on both on an off as you describe below but it is nice to program things how you want.
Its a generic question because I have lots of aircraft where it would be useful to pop the panel/gauge as per panel config window open close on a switch.

I have a 10" screen I used for GPS and FMS and the like.
Some aircraft have more than one useful instrument that I would like to see on the screen so I would like to program the equivalent of the FIP previous gauge/next gauge to cycle thru them or just have on off switches for that gauge.


I am glad you are seeing what I am seeing.

On Panel ID either the command doesn't work how we think or maybe Spad.next doesn't pass the ID correctly during the command (could Spadgod check?)

Thanks for looking.
I'll have a play later to see if it is possible some other way.
Any other suggestions welcome.
Rob.

User avatar
thedazman
Betatester
Posts: 1808
Joined: 28 Mar 2015, 10:47
Location: United Kingdom
Contact:
Status: Offline

Re: How to turn panels on & off with a switch

Post by thedazman » 16 May 2019, 17:30

apparently you should be able to use this to open panels exceeding numbers 0-9 according to the P3D gauge api.

Only GOD (SPAD) knows :-) if it should work or not.

Daz
"theDAZman" aka "theGFXguy"
Image
https://fipgauges.com

Locked