RPTools.net

Discussion and Support

Skip to content

It is currently Thu Sep 21, 2017 6:06 pm 






Reply to topic  [ 9 posts ] 

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
TheBard
 
Joined: Tue Mar 21, 2006 7:26 pm
Posts: 3478
Location: Austin, Tx
 Post subject: [FREQ] setSnapToGrid
PostPosted: Sun Apr 19, 2015 7:52 am 
I would like to be able to turn on and off snap to grid as part of a macro.

_________________
ImageImage ImageImageImageImage
Support RPTools by shopping
Image
Image


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1661
Location: Chicagoland
 Post subject: Re: [FREQ] setSnapToGrid
PostPosted: Sun Apr 19, 2015 11:52 am 
Why not.

_________________
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
More information here: MapTool Nerps! Fork | TokenTool Nerps! Fork
Custom TokenTool (version 1.0b33): TokenTool.exe


Top
 Profile  
 
User avatar  Offline
TheBard
 
Joined: Tue Mar 21, 2006 7:26 pm
Posts: 3478
Location: Austin, Tx
 Post subject: Re: [FREQ] setSnapToGrid
PostPosted: Thu Apr 23, 2015 4:46 pm 
This is 15.11 in the tracking spreadsheet.

_________________
ImageImage ImageImageImageImage
Support RPTools by shopping
Image
Image


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Thu Apr 16, 2015 8:48 am
Posts: 35
 Post subject: Re: [FREQ] setSnapToGrid
PostPosted: Sat May 16, 2015 6:59 pm 
RPTroll wrote:
I would like to be able to turn on and off snap to grid as part of a macro.

Do you want it to turn snap to grid on and off for the entire map/campaign or just for a single token?


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon Sep 15, 2008 8:27 am
Posts: 1169
Location: Bristol, UK
 Post subject: Re: [FREQ] setSnapToGrid
PostPosted: Sun May 17, 2015 8:06 am 
I would think for a selected token, something like:
Code:
setSnapToGrid(true [, tokenId])


Top
 Profile  
 
User avatar  Offline
TheBard
 
Joined: Tue Mar 21, 2006 7:26 pm
Posts: 3478
Location: Austin, Tx
 Post subject: Re: [FREQ] setSnapToGrid
PostPosted: Sun May 17, 2015 9:51 am 
Sorry for the delay. I must have missed the first post notification.

I would like it on a per token bases.

Thy syntax should be as above.

(true|false[,tokenId)

_________________
ImageImage ImageImageImageImage
Support RPTools by shopping
Image
Image


Top
 Profile  
 
User avatar  Offline
TheBard
 
Joined: Tue Mar 21, 2006 7:26 pm
Posts: 3478
Location: Austin, Tx
 Post subject: Re: [FREQ] setSnapToGrid
PostPosted: Sat Apr 30, 2016 10:00 am 
Looks like this was included as part of the last build. When I try to run
[snapTokenToGrid(1,tokenId)]

undefined function: snapTokenToGrid

_________________
ImageImage ImageImageImageImage
Support RPTools by shopping
Image
Image


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon Sep 15, 2008 8:27 am
Posts: 1169
Location: Bristol, UK
 Post subject: Re: [FREQ] setSnapToGrid
PostPosted: Sat Apr 30, 2016 11:30 am 
I think the function is called setTokenSnapToGrid.

I will add some documentation soonish :)


Top
 Profile  
 
User avatar  Offline
TheBard
 
Joined: Tue Mar 21, 2006 7:26 pm
Posts: 3478
Location: Austin, Tx
 Post subject: Re: [FREQ] setSnapToGrid
PostPosted: Sat Apr 30, 2016 12:19 pm 
No worries.

[setTokenSnapToGrid(1,currentToken())]

Worked to snap a token to the grid.

I updated the Announcement post with the correct function name.

_________________
ImageImage ImageImageImageImage
Support RPTools by shopping
Image
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 9 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman