setTokenWidth: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
|version=1.3b91 | |version=1.3b91 | ||
|description= | |description= | ||
Sets the token's image width in pixels (boundary size). | |||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
setTokenWidth(size) | |||
setTokenWidth(size, id) | setTokenWidth(size, id) | ||
</source> | </source> | ||
Line 14: | Line 15: | ||
'''Parameters''' | '''Parameters''' | ||
{{param|size|grid size of the token}} | {{param|size|grid size of the token}} | ||
{{param|id|The token id of the token to set its width}} | {{param|id|The token {{code|id}} of the token to set its width. Defaults to the [[Current token]].}}{{TrustedParameter}} | ||
|example= | |example= | ||
Line 24: | Line 25: | ||
|also= | |also= | ||
{{func|setTokenHeight}}, | {{func|setTokenHeight}}, {{func|getTokenHeight}}, {{func|getTokenWidth}} | ||
{{func|getTokenHeight}}, | |||
{{func|getTokenWidth}} | |||
}} | }} | ||
[[Category:Token Function]] | [[Category:Token Function]] |
Revision as of 04:51, 7 March 2019
setTokenWidth() Function
• Introduced in version 1.3b91
Sets the token's image width in pixels (boundary size).
Usage
setTokenWidth(size)
setTokenWidth(size, id)
Parameters
size
- grid size of the tokenid
- The tokenid
of the token to set its width. Defaults to the Current token.Note: This parameter can only be used in a Trusted Macro.
Example
[r: setTokenWidth(300, "Dragon")]
[r: setTokenHeight(150, "Dragon")]