Jump to content
Sign in to follow this  
Eisbahn

Blinking Bitmaps

Recommended Posts

HelloI have searched through the forums for a solution but without success.I am trying to make a simple gauge, which consists of a signal lamp that blinks continuously when the door is open. However, I am having difficulty in understanding the timer function.Here is my code without the timer code for the blinking function.<Gauge Name="Red Signal Lamp" Version="0.1"><Image Name="Door Lamp.bmp" Luminous="No" ImageSizes="159,159"/><!-- DISPLAY =============================================== --><Element><Image Name="Red_Lamp_Off.bmp" Luminous="Yes" ImageSizes="93,93"/><Position X="33" Y="32"/></Element><Element><Visible>(A:CANOPY OPEN,bool)</Visible><Image Name="Red_Lamp_On.bmp" Luminous="Yes" ImageSizes="93,93"/><Position X="33" Y="32"/></Element></Gauge>My question is, how can I insert code in the above to make the gauge blink when the door is open?Thanks in advance for any help.Terry

Share this post


Link to post
Share on other sites

Hi,Try:<Element><Position X=".." Y=".."/><Visible>(A:CANOPY OPEN,bool) (P:Absolute time,seconds) 1 % 0.7 > ! and</Visible><Image Name="On.bmp" Bright="Yes"/></Element>Hope it helps,Jan

Share this post


Link to post
Share on other sites
Hi,Try:<Element><Position X=".." Y=".."/><Visible>(A:CANOPY OPEN,bool) (P:Absolute time,seconds) 1 % 0.7 > ! and</Visible><Image Name="On.bmp" Bright="Yes"/></Element>Hope it helps,Jan
Hallo Jan,I have tried your code and it works perfectly.Thanks a lot for your help.Terry

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