Jump to content
Sign in to follow this  
Guest harry3

Trigger a color change via a joystick button/keystroke?

Recommended Posts

Guest Skymed

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
Guest harry3

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  

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