-
Notifications
You must be signed in to change notification settings - Fork 272
Description
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:
- Double click a token to open the edit window and go to State
- At the bottom of the page choose any bar (e.g. "Health") and lower its value below 100% (or pick one that is already below 100%), then click the "Hide"checkbox.
- Click "OK" to confirm the edit.
- Open the token editor once again and the bar will have been reset to 100%.
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
- Version: 1.7.0?
- Install: New
Desktop (please complete the following information):
- OS: Windows
- Version 10
Additional context
N/A
Metadata
Metadata
Assignees
Labels
Type
Projects
Status