getHalo: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Macros:Functions:getHalo moved to getHalo) |
Verisimilar (talk | contribs) m (Updated with recent version changes.) |
||
Line 1: | Line 1: | ||
{{MacroFunction | {{MacroFunction | ||
|name=getHalo | |name=getHalo | ||
|description=Gets the value of | |version=1.3b49 | ||
|description=Gets the color value of a token's [[Halo]]. The value returned is a string that represents the hexadecimal value of the color of the [[Halo]] in the format {{code|"#RRGGBB"}} or {{code|"None"}} if the token has no [[Halo]]. | |||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
getHalo() | |||
</source> | </source> | ||
<source lang="mtmacro" line> | |||
getHalo(id) | |||
</source> | |||
'''Parameter''' | |||
{{param|id|The token {{code|id}} of the token which has its halo color returned, defaults to the [[Current Token]]}} | |||
|example= | |example= | ||
Line 13: | Line 19: | ||
<span style="color:[r: getHalo()]">Halo Color Text</span> | <span style="color:[r: getHalo()]">Halo Color Text</span> | ||
</source> | </source> | ||
|changes= | |||
{{change|1.3b51|Added {{code|id}} parameter option.}} | |||
}} | }} | ||
[[Category:Token Function]] | [[Category:Token Function]] |
Revision as of 00:21, 31 March 2009
getHalo() Function
• Introduced in version 1.3b49
Gets the color value of a token's Halo. The value returned is a string that represents the hexadecimal value of the color of the Halo in the format
"#RRGGBB"
or "None"
if the token has no Halo.Usage
getHalo()
getHalo(id)
Parameter
id
- The tokenid
of the token which has its halo color returned, defaults to the Current Token
Example
The following example will display the text "Halo Color Text" in the color of the token's halo.
<span style="color:[r: getHalo()]">Halo Color Text</span>
Version Changes
- 1.3b51 - Added
id
parameter option.