Jump to content
Sign in to follow this  
Guest

Increasing/Decreasing L: Variable enums

Recommended Posts

Guest

Does anyone know if it would be posible to increase and decrease a L: variable enum, much like autopilot or radio settings? I.E. one click spot to increase, on spot to decrease. All I can do at the moment is make a click spot set the enum. Any insight would be greatly appreciated.Ian Grant

Share this post


Link to post
Share on other sites

This snippet assumes there is a 30 x 15 total click area split into 2 spots (up/down).. The value X is the number you want to increase or decrease. If the INC/DEC =1 the you can use the ++ -- operaters instead.


20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

Share this post


Link to post
Share on other sites
Guest

thanks Roman. I will give it a try. One question though, does the X represent what I want the number to increase by? for example, if I use 10, will it increase by 10s (0,10,20,30,etc...)? Thanks for the quick help!!!Ian Grant

Share this post


Link to post
Share on other sites
Guest

Ian,Yes X is the number you want it to increase by. Basically, the code above just adds or subtracts X from the variable. If you're going to use it for the autopilot heading, you'll have to keep the variable within 0 and 360, no more no less.David

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