I am making a buff bar, like in terraria, and one of the "buffs" shows the lifetime of the battery, but instead of the lifetime it shows a bunch of random numbers. Will someone review my code and explain what the problem was.
SilverAzide wrote:Try changing the line TooltipText=Life Time left: [MeasureLife:]
to TooltipText=Life Time left: [MeasureLife]
Maybe that will help...
Definitely, but not entirely.
David, first take into account SilverAzide's above very good reply, because the TooltipText=Life Time left: [MeasureLife:] option returns the numeric value of the [MeasureLife] measure, not the formatted one.
But there is one more problem: it seems that although the help of the Power plugin says that the same Format syntax can be used on a this kind of measure, like on the Time measures, the Format=locale-time option isn't allowed. If you try to change this to something else (like Format=H: %H, M: %M, S: %S) you get the appropriate format for the wanted time.
Thank you all for your input, I didn't realize how flexible the Format option was, and I need to review the symbols that go in the []. It worked thanks again!