Jump to content
Sign in to follow this  
E

Auto-zooming View in XML

Recommended Posts

Is it possible to create an automatic gauge to zoom the view out one notch (to 75%) whenever the zoom reset key is hit? I have been unable to creat such a gauge to date utilizing my vast XML knowledge and background. (well, maybe not so vast, but I can spell XML 2 out of 3 times! *grin?*)

Share this post


Link to post
Share on other sites

Hi,Not tested, but you could try the A:Var "ZOOM_FACTOR" using the K events "ZOOM_MINUS" and "ZOOM_PLUS", "ZOOM_IN_FINE" and "ZOOM_OUT_FINE" or "ZOOM_IN" and "ZOOM_OUT"Say:Zoomfactor > (what you want) if{ Zoom out }Zoomfactor < (what you want) if{ Zoom in }or something like that.Hope it helps,Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

Hi Jan,I was puzzled by the same question.The problem is, that to my knowledge there's no (XML) variable that specifies the current zoom factor.Hence your solution doesn't work :-)Cheers, Rob

Share this post


Link to post
Share on other sites

Rob,Possible, but i found in the TokenvarSDK:ZOOM_FACTOR N Specifies zoom value of current window in real units.So probably:(A:ZOOM_FACTOR,number)Didn't try though,Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

There is the zoom 1x variable to test for. However, I don't want to lock the zoom to my preference. I'd like to somehow be able to catch the zoom reset event and only then tack on a zoom out command.

Share this post


Link to post
Share on other sites

I see now,What variable do you use?For curiousity i tried A:Zoom factor,number and percent.As Rob stated: it doesn't give any value.Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

A combination of ZOOM_FACTOR N and KEY_ZOOM_1X and KEY_ZOOM_OUT should get me to where I want to be zoom-wise. The sticky wicket is that I want to retain the ability to zoom in and out as wanted, but to trick FS9 into making a zoom of 75% the default for a zoom/view reset.

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