Jump to content
Sign in to follow this  
Guest aymeric106

Reset Simulation rate with a Gauge ?

Recommended Posts

Guest aymeric106

Hi,First, i know nothing about gauges for now.I can't find a way to reset quickly the sim rate to 1X except "R" "-" "-" "-" on the keyboard.I thought adding a small button to my panels that could do that ...Is it possible to do that easyly ?Is there some kind off 'macro gauge' already done, that may for exemple read a text file for a command like 'set simrate=1' or someting ?Thanksaymeric

Share this post


Link to post
Share on other sites
Guest JEL

This little xml-gauge will do what you want I think:Set SimRate to Normal 1 (>K:SIM_RATE) The image-file can be whatever you want. In this example I pretend to have an image that is 25 by 25 pixels big (width, height)The bitmap in this example must be in the same dir as the xml-file.Put the script in a file and call it something.xml (whatever name you want), and then insert it at your panel.Then in your cockpit you should have a button that you can click, and which should then set the sim-rate to 1.I hope this gets you going :)JEL

Share this post


Link to post
Share on other sites

Now for a variation on that theme, I've been wanting to DETECT the sim rate so I know when it is NOT X1. Advice?-Pv-

Share this post


Link to post
Share on other sites
This little xml-gauge will do what you want I think:
If you don't wrap your XML script with the CODE tags, it will be hidden!Highlight your XML or C code, then the row of Icons above the editor's window, use the LAST button to format it for the forum.
<Gauge Name="JELAIR-SetSimRate" Version="1.0"><Update Frequency="1"/><Image Name="JELAIR-ButtonBitmap.bmp" ImageSizes="25,25"/><Mouse>	<Tooltip ID="">Set SimRate to Normal</Tooltip>	<Area Left="0" Right="25" Top="0" Bottom="25">		<Cursor Type="Hand"/>		<Click>			1 (>K:SIM_RATE)		</Click>	</Area></Mouse></Gauge>


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Hi, Use in a string:%((P:SIMULATION RATE,enum))%!2.2f!%and it will show 0.25, 0.50, 1.00, 2.00, 4.00, 8.00 and 16.00.Jan

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