Sign in to follow this  
Guest harry3

Trigger a color change via a joystick button/keystroke?

Recommended Posts

In order to keep certain elements of my HUD visible in all conditions, I need to trigger a color change in several strings when I push a joystick button or a key on the keyboard.Example:(A:Ambient wind velocity, bool)%((A:Ambient wind velocity, knots) d 0 == ?)%!2d!{dpl=WS}So in the above the color is #80FF80 when normal. How would I change it to turn to red, then blue then back to its original color via multiple pushes of a joystick button or keystroke(1 push red, 2 pushes blue 3 pushes back to normal etc)??Any help is always appreciated.Steve

Share this post


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

You can calculate things in the colour tag, e.g. in one of my gauges this looks like this:Color="%( '#FF1C11' '#00FF00' (A:Radio Height, feet) (L:dh, numbers) < ?"So you can try this for your gauge this way: (A: any input) if{ 'the color you want to see' } (A:another input) if{ 'another color' } and so on....Best regards,Harri

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