Negative progress bar

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By dr1nkEj

Hello everyone who opened this page.
Right now Im doing something like “reputation bar” with values from -100 to 100.
Im using progress bar for that
When i set min value for -100 and max value for 100 with current value 20 it shows me that its current value is 60, which is absolutely wrong.
(everything was set in inspector mode)
Is there any way to do the thing i want without tons of code?

:bust_in_silhouette: Reply From: jgodfrey

So, I assume the 60 value you see is a “percentage” value (as controlled by the percent_visible property). And, in the range of -100 - 100 a value of 20 is exactly 60% through the specified range. So, in that regard, the value is accurate, it’s just (apparently) not what you want…

If you want some other value to be displayed, I’d recommend that you disable the percent_visible property, add a separate label (either on top of the progress bar, or somewhere near it), and display whatever value you want in that label.