I want to use the ProgressBar to show how much fuel is left in a car tank, or how close to the maximum speed of the car we got to, among other factors. To do that I decided to set the value as a percentage (speed of a car is from 0-240 for example, and I turn that into a percentage that can be read by the bar).
Except I don't know how to make the bar take the value that is needed and present it on the bar itself.
I read somewhere that we cannot set our own values to the bar IF they are doubles, it only accepts int values, which might explain why they were turned into percentages.
Thanks for your help.