-
-
Notifications
You must be signed in to change notification settings - Fork 4
Replies: 1 comment · 2 replies
-
Hi, and welcome :) Check out the "starter page" from the wiki. It's full of examples like that, for instance all the AP toggles, the lights, and de-ice switches. Perhaps obviously, you'll need the correct data from the sim to properly reflect the switch position. If the switch status (on/off) simulator variable isn't already in the list of Touch Portal States this plugin provides by default, then you'll need to find what variable in the sim reflects the switch status and read up on https://github.com/mpaperno/MSFSTouchPortalPlugin/wiki/Using-Custom-States-and-Simulator-Variables. HTH, |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hello Max and thank you for your swift reply.
See alt_mode_slot_index for more information. AUTOPILOT_APPROACH_ACTIVE b (BOOL) When TRUE (1), the autopilot is currently flying the approach Flight Plan (the last legs), and when FALSE (0) it's not. Note that if you set this, the next frame the value will be overwritten by the engine, so you may need to write to this every game frame to ensure it maintains the required value. AUTOPILOT_BANK_MODE b (BOOL) Returns whether the autopilot bank hold mode is active (1, TRUE) or not (0, FALSE).
See alt_mode_slot_index for more information. AUTOPILOT_APPROACH_ACTIVE b (BOOL) When TRUE (1), the autopilot is currently flying the approach Flight Plan (the last legs), and when FALSE (0) it's not. Note that if you set this, the next frame the value will be overwritten by the engine, so you may need to write to this every game frame to ensure it maintains the required value. AUTOPILOT_BANK_MODE b (BOOL) Returns whether the autopilot bank hold mode is active (1, TRUE) or not (0, FALSE). |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi Max, |
Beta Was this translation helpful? Give feedback.
-
With MSFS2020 (thanks Max) I am trying to find out how to change a button icon when the sim vaiable changes. For example I have a button to change to one with a green light and 'HDG IS ON' when pressed, referring to the staus of the A/P heading hold. When pressed again it turns to a red light and the obvious message. Sometimes the autopilot will disconnect a button and I would like the relevant icon to change when it does so, e.g. VS when the desired altitude is reached etc.. I've tried everything I can think of but then...
Can anyone help please?
Beta Was this translation helpful? Give feedback.
All reactions