Sign in to follow this  
Guest

Increasing/Decreasing L: Variable enums

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

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.

Share this post


Link to post
Share on other sites

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

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