User:Merkuri: Difference between revisions
Jump to navigation
Jump to search
(New page: Testing the MacroFunction template: {{MacroFunction |name=setBarVisible |description= Sets if the specified bar for the Current Token is visible or n...) |
No edit summary |
||
Line 1: | Line 1: | ||
Testing the MacroFunction template: | Testing the [[Template:MacroFunction|MacroFunction template]]: | ||
{{MacroFunction | {{MacroFunction | ||
|name=setBarVisible | |name=setBarVisible | ||
|version=1.3 | |||
|description= | |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. | 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. |
Revision as of 03:47, 4 March 2009
Testing the MacroFunction template:
setBarVisible() Function
• Introduced in version 1.3
Sets if the specified bar for the Current Token is visible or not. If the value is non zero then the bar is visible, if it is 0 it is not visible.
Usage
[h: setBarVisible(name, value)]
Examples
Make "health" bar for the Current Token visible.
[h: setBarVisible("health", 1)]
Hide "health" bar for the Current Token.
[h: setBarVisible("health", 0)]