Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XML LeftScript and TopSript

Featured Replies

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

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

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

  • Moderator
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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.