Page 2 of 2 First 12
  1. #11
    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>

  2. #12
    Blackfoot's Avatar
    Join Date
    Oct 2010
    Location
    New Jersey, USA
    Posts
    3,966
    Blog Entries
    4
    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!
    Full License Operator - You must have a 'Lite' License to play in my games.
    Member and GM in the Fantasy Grounds Pathfinder Society Group.
    PFS Fantasy Grounds Forum
    FG Community Teamspeak Server: ts.fg-con.com
    Interested in Custom Character Portraits and Tokens? Contact me.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in