Jump to content
Sign in to follow this  
Guest Skymed

Multiple Color Choices based on Mouse Click

Recommended Posts

Guest Skymed

KHere I go again with another weird question:Lets say I have parts of a HUD gauge that I want the color to be user selectable, based on a mouse click.For instance this one switches the text "ASI" between Dark_orange and green based on a mouse clickable area elsewhere in the gauge that loads G Var 8.%ASI%!3d!%And the mouse click area:(G:Var8) ! (>G:Var8)Change HUD ColourHowever, it's only 2 colors, and, given the huge difficulty in finding an appropriate color for a HUD in all the various permutations of weather and terrain situations there are, I would ideally like to have say 5 or 6 colors the user could cycle through until the right color for the situation was found.Any takers on this one???Steve

Share this post


Link to post
Share on other sites

Steve,This tests out OK....Color="%('Blue' 'Yellow' 'Red' 'Green' 'White' 'Aqua' 6 (G:Var8) case)"G:Var8 selects the color #... The number 6 is the number of color options.. 0= Aqua1= White2 = Green3 = Red4 = Yellow5 = Blue(G:Var8) 5 == if{ 0 (>G:Var8) } els{ (G:Var8) ++ (>G:Var8) } Regards,Roman


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

 

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