Steps to reproduce:
1) create the progress bar:
Code: Select all
/c game.player.gui.top.add{name="foo", type="progressbar", size=100}
Code: Select all
/c game.player.gui.top.foo.value = 50
Code: Select all
/c game.player.gui.top.add{name="foo", type="progressbar", size=100}
Code: Select all
/c game.player.gui.top.foo.value = 50
they should, but the bar just instantly fills with any number which is less then the size.Rseding91 wrote:I thought progress bars where a percent of 1?
mmm, your right. But it seems silly. then on the wiki its not specified correctlyFishSandwich wrote:If it works the same way as player health then you need to use fractions between 0 and 1. Anything above 1 is considered 1.
So for half the bar, you'll use 0.5