|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
| Testing the [[Template:MacroFunction|MacroFunction template]]:
| | Nothing to see here. :) |
| | |
| {{MacroFunction
| |
| |name=setBarVisible
| |
| |version=1.3
| |
| |description=
| |
| Sets if the specified [[Token:bar|bar]] for the [[Token:Current Token|Current Token]] is visible or not. If the value is non zero then the [[Token:bar|bar]] is visible, if it is 0 it is not visible.
| |
| | |
| |usage=
| |
| <source lang="mtmacro" line>
| |
| [h: setBarVisible(name, value)]
| |
| </source>
| |
| | |
| |examples=
| |
| Make "health" [[Token:bar|bar]] for the [[Token:Current Token|Current Token]] visible.
| |
| <source lang="mtmacro" line>
| |
| [h: setBarVisible("health", 1)]
| |
| </source>
| |
| | |
| Hide "health" [[Token:bar|bar]] for the [[Token:Current Token|Current Token]].
| |
| <source lang="mtmacro" line>
| |
| [h: setBarVisible("health", 0)]
| |
| </source>
| |
| }}
| |