Jump to content
Sign in to follow this  
Virtual Captain

Making click spots available at certain times?

Recommended Posts

Hello...I have been following this forum for quite some time (unregistered until now) and I wanted to say that I am very impressed with the level of knowledge here regarding gauge design. My hats' off to all of you.I have been working on a vc for the past several weeks and I am near completion with the exception of a couple of last minute problems. I am making a simple switch that is concealed by a "switch guard" (not sure of the proper term for it is). So basically you have to click on the "switch guard" to reveal the switch...then if you close the switch guard the switch is once again concealed.I have all the xml code setup properly in terms of functionality but I have 2 problems:1)I need to get the switch not to draw when the guard is in the down/closed position; only when it is in the up/open position.2)I need to make the click spot for the switch not be available when the guard is in the down/closed position; only in the up/open position.Any help or info regarding this is greatly appreciated.Best Regards,Anastasio Alexiou

Share this post


Link to post
Share on other sites

Hi,Make 1 gauge with 2 elements: the switch and the guard.Put the guard element below the switch element.Make sure in the bmp's that when guard is flipped open, the switch is visible and invisible when guard is closed.In the clickspot make the switch event dependable of the guard event:Guard: (L:Guard,bool) ! (>L:Guard,bool)Switch: (L:Guard,bool) if{ (L:Switch,bool) ! (>L:Switch,bool) }Clickspot guard below the switch clickspot.Works ok for me.Jan"Procul Negotiis"

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