setTokenLayoutProps: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
'''Parameters''' | '''Parameters''' | ||
{{param|scale|The scale of the token layout.}} | {{param|scale|The scale of the token layout. If an empty string, the scale is not changed.}} | ||
{{param|xOffset|The xOffset of the token layout.}} | {{param|xOffset|The xOffset of the token layout. If an empty string, the xOffset is not changed.}} | ||
{{param|yOffset|The yOffset of the token layout.}} | {{param|yOffset|The yOffset of the token layout. If an empty string, the yOffset is not changed.}} | ||
{{param|tokenID|The token {{code|id}} of the token to name, defaults to the [[Current Token]]. {{TrustedParameter}}}} | {{param|tokenID|The token {{code|id}} of the token to name, defaults to the [[Current Token]]. {{TrustedParameter}}}} | ||
{{param|mapname|The name of the map to find the token. Defaults to the current map.}} | {{param|mapname|The name of the map to find the token. Defaults to the current map.}} |
Revision as of 17:49, 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. If an empty string, the scale is not changed.xOffset
- The xOffset of the token layout. If an empty string, the xOffset is not changed.yOffset
- The yOffset of the token layout. If an empty string, the yOffset is not changed.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.