Roy Holmes
Resource contributor
- Messages
- 1,805
- Country

I would like to be able to vary the "Y" position of an element according to a variable input.
The SDK, Creating XML Gauges document, XML Gauge Reference section under "Element Objects" has a "TopScript" property which appears to be what I want.
However, I'm not using the ACES tool, I hand code.
I'm working on a gunsight reticle which is made up of diamonds drawn using polygons. Here is a code snippet
There are more polygons below that and the original element call is terminated with a close element.
As you can see the Y position is at 180 and this is what I would like to be able to change according to a L:var for sight depression.
I was wondering if something like this would work
If I could do that I would avoid having to use a bunch of repeated code with discrete depression intervals according to visible conditions.
Roy
The SDK, Creating XML Gauges document, XML Gauge Reference section under "Element Objects" has a "TopScript" property which appears to be what I want.
However, I'm not using the ACES tool, I hand code.
I'm working on a gunsight reticle which is made up of diamonds drawn using polygons. Here is a code snippet
Code:
<Element>
<Position X="323" Y="180"/>
<Element>
<Polygon Color="Red" LineWidth="1" FillColor="Red" Bright="Yes">
<Point X="0" Y="-50"/>
<Point X="-4" Y="-55"/>
<Point X="0" Y="-60"/>
<Point X="4" Y="-55"/>
<Point X="0" Y="-50"/>
</Polygon>
</Element>
There are more polygons below that and the original element call is terminated with a close element.
As you can see the Y position is at 180 and this is what I would like to be able to change according to a L:var for sight depression.
I was wondering if something like this would work
Code:
<Position X="323" Y="180" Top=(L:Depression,number)/>
If I could do that I would avoid having to use a bunch of repeated code with discrete depression intervals according to visible conditions.
Roy
Last edited:
