Jump to content
Sign in to follow this  
Guest knivpekka

Multiple cases impossible?

Recommended Posts

Guest knivpekka

Is it not possible to have more than one "case" statement in a gauge? I use a case function with a rotating switch to change the colors on a radar screen grid. When I try to add a second switch to control another part of the radar in a similar way, I crash to desktop. This works fine, but if I add another one in the same gauge:I invariably get a CTD. Am I doing something wrong here?/toto

Share this post


Link to post
Share on other sites
Guest bartels

Maybe this?There was no % at the closing bracket of the Color string.Arne Bartels

Share this post


Link to post
Share on other sites
Guest knivpekka

Thanks Arne! However, it does not work, now none of the lines show up. It doesn't crash anymore, though. I thought a closing % was unnecessary? I nicked the syntax from Steve Hanley's excellent HUDILS gauge, it works perfectly there (he only has one case function in that gauge though).Have you ever used two case functions in one XML gauge?Cheers /toto

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