Sign in to follow this  
Guest Eugen

two shift

Recommended Posts

Hi,I am trying to accomplish a moving altitude bug with altitude numbers but I cannot get it to work. Is it possible to to have to shift within element see my code below.BrgdsEugen (A:Autopilot altitude lock var, feet) 100000 + 1000 % 100 / flr (A:Indicated Altitude, feet) (A:Autopilot altitude lock var, feet) -

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi Eugen,Tested this one:(A:Indicated Altitude,feet) 100000 + 100000 % 1000 % 100 /(A:Indicated Altitude, feet) (A:Autopilot altitude lock var, feet) -This happens:When (A:Indicated Altitude,feet) becomes greater than (A:Autopilot altitude lock var, feet), the "strip" becomes invisible.I don't know if that is what you want.If you want to shift the whole thing, then think of this one:(A:Attitude bars position, position)etc.Jan

Share this post


Link to post
Share on other sites

Btw.Found out, that a "MaskImage" will not Shift!?!?Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites

Hi Jan,Neither wil a text string which I tested I wonder how it can be done. PSS has done it in the PSS Airbus wonder if that one is vector based?Any other good ideas ?BrgdsEugen

Share this post


Link to post
Share on other sites

Eugen,I tested a textstring and it did shift! (even rotation is possible)This was the code:%((A:BRAKE LEFT POSITION,number) 100 /)%!f!(A:Attitude bars position, position)The whole text shifted up and down, while the numbers were changing.Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites

Jan,I couldn't get it two work hmmm I am attaching a test gauge as a text file it is the same you posted above.Could please verify that the file works .BrgdsEugen

Share this post


Link to post
Share on other sites

Eugen, Probably you have to add:(Make one)And the click events!While "shifting" you have to press the brakes too of course.So it must be:%((A:BRAKE LEFT POSITION,number) 100 /)%!f!(A:Attitude bars position, position)Caging Knob, DownCaging Knob, UpJan"Procul Negotiis"

Share this post


Link to post
Share on other sites

Eugen,Of course you could test (didn't yet):%((A:Indicated Altitude,feet))%!d!(A:Indicated Altitude,feet) (A:Autopilot Altitude Lock Var,feet) -Or something like that.Jan

Share this post


Link to post
Share on other sites

Hi Jan,I got it working finally :-)The background image was the key.Thanks for your help.BrgdsEugen

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