Sign in to follow this  
Guest Skymed

Multiple Color Choices based on Mouse Click

Recommended Posts

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

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

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