bringToFront: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Minor formatting changes.) |
m (Added note about current bug in 1.3.b63) |
||
Line 4: | Line 4: | ||
|description= | |description= | ||
Adjust the z order (or draw order) of the [[Token]] so that is is drawn after all other [[Token]]s on the same [[Map Layer]], this has the effect of making the [[Token]] appear to be in front of the other [[Token]]s as it will obscure other [[Token]]s on the same [[Map Layer]] in the same location. | Adjust the z order (or draw order) of the [[Token]] so that is is drawn after all other [[Token]]s on the same [[Map Layer]], this has the effect of making the [[Token]] appear to be in front of the other [[Token]]s as it will obscure other [[Token]]s on the same [[Map Layer]] in the same location. | ||
''As of 1.3.b63 there appears to be a bug in which token states are not rendered properly after calling sendToBack or bringToFront. As a work-around, macros should change the token ordering first, then turn states on or off.'' | |||
|usage= | |usage= |
Revision as of 22:21, 18 January 2010
bringToFront() Function
• Introduced in version 1.3b48
Adjust the z order (or draw order) of the Token so that is is drawn after all other Tokens on the same Map Layer, this has the effect of making the Token appear to be in front of the other Tokens as it will obscure other Tokens on the same Map Layer in the same location.
As of 1.3.b63 there appears to be a bug in which token states are not rendered properly after calling sendToBack or bringToFront. As a work-around, macros should change the token ordering first, then turn states on or off.
Usage
bringToFront()
bringToFront(id)
Parameter
id
- The tokenid
or name of the token to effect, defaults to the Current Token.Note: This parameter can only be used in a Trusted Macro.
Examples
<!-- Make sure that we are visible above all other tokens on the same layer -->
[h: bringToFront()]
<!-- The Hero of the piece should always stand out -->
[h: bringToFront("Hero")]
See Also
Version Changes
- 1.3b51 - Added
id
parameter option.