Yeah I know, was just something to point you in the right direction. Here is a more cleaned up example. It doesn't keep the variable between 0 and 1, but the display does, by dividing the variable by the width of the bar.
- Code: Select all
textNumber=(float)slide_var/bar.width;
It uses the same data folder as the other file I pointed you to.
-Edit
Attached one that you can specify the max of the variable.