setTokenLayoutProps: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{MacroFunction |name=setTokenLayoutProps |version=1.6.1 |description= Se the token layout scale, xOffset, and yOffset. |usage= <source lang="mtmacro" line> setTokenLayoutPro...") |
mNo edit summary |
||
Line 2: | Line 2: | ||
|name=setTokenLayoutProps | |name=setTokenLayoutProps | ||
|version=1.6.1 | |version=1.6.1 | ||
|description= | |description= Set the token layout scale, xOffset, and yOffset. | ||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> |
Revision as of 17:45, 22 March 2020
setTokenLayoutProps() Function
• Introduced in version 1.6.1
Set the token layout scale, xOffset, and yOffset.
Usage
setTokenLayoutProps(scale, xOffset, yOffset)
setTokenLayoutProps(scale, xOffset, yOffset, id)
setTokenLayoutProps(scale, xOffset, yOffset, id, mapName)
Parameters
scale
- The scale of the token layout.xOffset
- The xOffset of the token layout.yOffset
- The yOffset of the token layout.tokenID
- The tokenid
of the token to name, defaults to the Current Token.Note: This parameter can only be used in a Trusted Macro.
mapname
- The name of the map to find the token. Defaults to the current map.