setHalo: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Applied Template:MacroFunction) |
No edit summary |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{MacroFunction | {{MacroFunction | ||
|name=setHalo | |name=setHalo | ||
|version=1.3b49 | |||
|description= | |description= | ||
Sets the [[ | Sets the [[Halo]] color of a [[Token]]. | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
setHalo(color) | |||
</ | </syntaxhighlight> | ||
<syntaxhighlight lang="mtmacro" line> | |||
setHalo(color, id) | |||
</syntaxhighlight> | |||
'''Parameters''' | |||
{{param|color|The color to set the [[Halo]] to, valid values are: | |||
** {{code|"Black"}} | |||
** {{code|"Green"}} | |||
** {{code|"Yellow"}} | |||
** {{code|"Orange"}} | |||
** {{code|"Red"}} | |||
** {{code|"Cyan"}} | |||
** {{code|"Magenta"}} | |||
** {{code|"White"}} | |||
** A hexadecimal color value in the format {{code|"#RRGGBB"}} | |||
** {{code|"None"}} }} | |||
{{param|id|The token {{code|id}} of the token that has its [[Halo]] set by this function. {{TrustedParameter}} }} | |||
|examples= | |examples= | ||
To remove the [[ | To remove the [[Halo]] from the [[Current Token]]. | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h: setHalo("None")] | [h: setHalo("None")] | ||
</ | </syntaxhighlight> | ||
To set the [[ | To set the [[Halo]] for the [[Current Token]] to red. | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h: setHalo("Red")] | [h: setHalo("Red")] | ||
</ | </syntaxhighlight> | ||
To set the [[ | To set the [[Halo]] from the [[Current Token]] to a custom color | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h: setHalo("#33AAFF")] | [h: setHalo("#33AAFF")] | ||
</ | </syntaxhighlight> | ||
|also= | |||
[[Halo]], | |||
[[getHalo|getHalo()]] | |||
|changes= | |||
{{change|1.3b51|Added {{code|id}} parameter option.}} | |||
}} | }} | ||
[[Category:Token Function]] | [[Category:Token Function]] |
Latest revision as of 23:59, 14 March 2023
setHalo() Function
• Introduced in version 1.3b49
Usage
setHalo(color)
setHalo(color, id)
Parameters
color
- The color to set the Halo to, valid values are:"Black"
"Green"
"Yellow"
"Orange"
"Red"
"Cyan"
"Magenta"
"White"
- A hexadecimal color value in the format
"#RRGGBB"
"None"
id
- The tokenid
of the token that has its Halo set by this function.Note: This parameter can only be used in a Trusted Macro.
Examples
To remove the Halo from the Current Token.
[h: setHalo("None")]
To set the Halo for the Current Token to red.
[h: setHalo("Red")]
To set the Halo from the Current Token to a custom color
[h: setHalo("#33AAFF")]
See Also
Version Changes
- 1.3b51 - Added
id
parameter option.