-
Now that I've had a chance to look at this while at my desk. Try this code:
Code:
<template name="image_record_step2">
<imagecontrol name="image">
<indicators locked="image_locked" loading="image_loading" />
<script file="campaign/scripts/image.lua" />
</imagecontrol>
</template>
<template name="image_record_step">
<image_record_step2>
<default drawingsize="500,500" gridtype="hexrow" snaphex="vertexandcenter" snap="on" />
<pointertypes>
<arrow>
<icon>pointer</icon>
<label>Draw Arrow</label>
</arrow>
<circle>
<icon>pointer_circle</icon>
<label>Draw Circle</label>
</circle>
<cone>
<icon>pointer_cone</icon>
<label>Draw Cone</label>
</cone>
<custom name="TrianglePointer">
<icon>pointer_cone</icon>
<label>Draw Triangle</label>
</custom>
<custom name="HexPointer">
<icon>pointer_circle</icon>
<label>Draw Hex</label>
</custom>
</pointertypes>
<script>
function onBuildCustomPointer(nStartXCoord,nStartYCoord,nEndXCoord,nEndYCoord,sPointerType)
local aShapeCurves, aDistLabelPosition, bDrawArrow = CustomPointer.onBuildCustomPointer(nStartXCoord,nStartYCoord,nEndXCoord,nEndYCoord,sPointerType);
return aShapeCurves,aDistLabelPosition,bDrawArrow;
end
</script>
</image_record_step2>
</template>
-
Awesome. That seems to have solved all of my issues. The snap is working for vertexes and centers... the custom pointers work.. all good.
Thanks!