Jump to content
Sign in to follow this  
Guest Goeland

XML LeftScript and TopSript

Recommended Posts

Guest Goeland

Hello everybody,LeftScript and TopSript are optional scripts that evaluate the top left hand X and Y position of the element, and override the FloatPosition. I have write in a gauge an element : <Element id="Bug"> <LeftScript> expression_X </LeftScript> <TopScript> expression_Y </TopScript> <Image id="Image" Name="bitmap.bmp"> <Transparent>True</Transparent> <Bright>True</Bright> <Axis>10,10</Axis> </Image> <Rotation id="Rotation"> <Expression id="Expression"> <script> expression_rotation </Script> </Expression> </Rotation> </Element>The position of bitmap.bmp don't move according to expression_X and expression_Y values, only the first one value is calculated. I verified with a GaugeString, there is no error in expression_X and expression_Y. The bitmap.bmp rotation is good with expression_rotation.My question : How can I do for using correctly LeftScript and TopSript ?RegardsClaude

Share this post


Link to post
Share on other sites

Hi, LeftScript and TopScript actually work as you've already noticed. At gauge first load, script expression is evaluated and image placed fixed in accordance, no matter the result of the script varies within the normal gauge's cycle. But you can still use <Shift> on X and Y axis to dynamically move your bitmap.Regards,Tom

Share this post


Link to post
Share on other sites
Guest Goeland

Hi Tom,The bitmap moves indeed as you explained using the <Shift> and <NonlinearityTable> functions. My new Gauge is now OK. Thank you very much for your help.Regards,Claude

Share this post


Link to post
Share on other sites
Hi, LeftScript and TopScript actually work as you've already noticed. At gauge first load, script expression is evaluated and image placed fixed in accordance, no matter the result of the script varies within the normal gauge's cycle. But you can still use <Shift> on X and Y axis to dynamically move your bitmap.
It's hard to find a more throughly useless set of <Tags>... :(

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

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