-
Notifications
You must be signed in to change notification settings - Fork 278
Toggling bar visibility resets the bar #2326
Copy link
Copy link
Labels
bugdocumentation neededMissing, out-of-date or bad documentationMissing, out-of-date or bad documentationgood first issueA good issue for people wanting to contribute to start withA good issue for people wanting to contribute to start withmacro changesThis issue adds or changes macro functions. Extra work is required (testing, wiki, code editor)This issue adds or changes macro functions. Extra work is required (testing, wiki, code editor)up for grabsMinimal context and are well-suited for new contributorsMinimal context and are well-suited for new contributors
Metadata
Metadata
Assignees
Labels
bugdocumentation neededMissing, out-of-date or bad documentationMissing, out-of-date or bad documentationgood first issueA good issue for people wanting to contribute to start withA good issue for people wanting to contribute to start withmacro changesThis issue adds or changes macro functions. Extra work is required (testing, wiki, code editor)This issue adds or changes macro functions. Extra work is required (testing, wiki, code editor)up for grabsMinimal context and are well-suited for new contributorsMinimal context and are well-suited for new contributors
Type
Projects
Status
Awaiting-Review
Describe the bug
When using the bars in tokens, if you hide the bar it resets the value to 100%. I assume this is undesirable, as the visibility of the bar should be unrelated to its value.
To Reproduce
Steps to reproduce the behavior:
The same happens when using the
setBarVisible()function.Expected behavior
I would expect the bar to become invisible (which it does), but the value of the bar not be altered. If you are, for instance, toggling show/hide of a health bar using
setBarVisible("Health", 1-isBarVisible("Health"))every time the bar pops back up it's at 100%. The current workaround is to call the macro that sets the bar's value in the first place, but it doesn't seem like that would be the expected behavior.Screenshots
N/A
MapTool Info
Desktop (please complete the following information):
Additional context
N/A