Archived

This topic is now archived and is closed to further replies.

Guest Goeland

XML LeftScript and TopSript

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

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

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

Share this post


Link to post
Share on other sites