23.02.2013, 20:13
Hi everyone,
I made some progress bars with normal textdraws (since I couldn't find any easy to use progress bar includes), but now I have to find some formula to calulate the width of a textdraw, corresponding to the percentage given.
Example:
Testvalue = 100.0
Textdraw width = 55.000
Testvalue = 27.432
Textdraw width =![Huh?](images/smilies/confused.gif)
The textdraw width goes from 55 to 5, so it can decrease by maximum 50.
Now, can anyone think of a formula to get the width with the Testvalue?
Or, can someone tell me a better way to do it?
Thanks in advance
I made some progress bars with normal textdraws (since I couldn't find any easy to use progress bar includes), but now I have to find some formula to calulate the width of a textdraw, corresponding to the percentage given.
Example:
Testvalue = 100.0
Textdraw width = 55.000
Testvalue = 27.432
Textdraw width =
![Huh?](images/smilies/confused.gif)
The textdraw width goes from 55 to 5, so it can decrease by maximum 50.
Now, can anyone think of a formula to get the width with the Testvalue?
Or, can someone tell me a better way to do it?
Thanks in advance