Hello everyone, i have a suggestion as follow:
When I was messin in MapTool, I saw token bar could have a configuration to choose between percentage and numbers, and those numbers can be like: Health 53 / 165 (53 is the current number "{0}" and the 165 is the total "{1}")
After set those numbers the bar would refresh every time when the current number is changed and compare with the total.
That would help to use the bars and easily set up other bar rather than only drag the percentage up.
Many thanks.
More option at Token Bar (MapTool)
Moderators: dorpond, trevor, Azhrei
Re: More option at Token Bar (MapTool)
Do you mean having setBar("name",percent) saving a max value and then using a current value instead of a percent to change the bar?
???
Code: Select all
<!-- normal method -->
[H: setBar("myBar",current/max)]
<!-- new method -->
[H: setBarMax("name",max)]
[H: setBar("name",current)]
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: More option at Token Bar (MapTool)
Yes, exactly aliasmaskaliasmask wrote: ↑Sun Jul 04, 2021 9:37 pmDo you mean having setBar("name",percent) saving a max value and then using a current value instead of a percent to change the bar?
???Code: Select all
<!-- normal method --> [H: setBar("myBar",current/max)] <!-- new method --> [H: setBarMax("name",max)] [H: setBar("name",current)]
Re: More option at Token Bar (MapTool)
You can put in a feature request here: https://github.com/RPTools/maptool/issues
But, to me it seems a bit superfluous and I don't really see the advantage of doing it a different way. If you really want to do it that way, you could create your own UDFs. This is something I've done in the past to handle simple math formulas that I didn't want to keep typing in.
But, to me it seems a bit superfluous and I don't really see the advantage of doing it a different way. If you really want to do it that way, you could create your own UDFs. This is something I've done in the past to handle simple math formulas that I didn't want to keep typing in.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools