[patch] add optional parameter to setLayer() / copyToken()

Notes on testing the latest builds of MapTool

Moderators: dorpond, trevor, Azhrei

Post Reply
User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

[patch] add optional parameter to setLayer() / copyToken()

Post by Azhrei »

As discussed here: http://forums.rptools.net/viewtopic.php?f=20&t=23610

setLayer() and copyToken() now accept an optional parameter that defaults to true and forces the token's shape to be reset based on the destination layer. (Top down shape is used for Background and Object layers; shape determined dynamically for other layers.)

For setLayer() add a third parameter as a numeric value. A value of zero means false, any other value means true.

For copyToken() add the key forceShape. A value of zero means false, any other value means true.

Patch committed as rev 5951.

Post Reply

Return to “Testing”