if you want to link a units health with a progress bar, id recommend setting the maximum value of the status bar to the units maximum health and the current value to the current health. then update both when the linked units life current/life maximum changes.
How do I add "progress" to a progress bar?
@dubo863: Go
Taking a guess here. Set the current value of the dialog to a value between 0 to 100?
@FuzzYD: Go
It's actually between 0 and 1 by default.
just some addition by me:
if you want to link a units health with a progress bar, id recommend setting the maximum value of the status bar to the units maximum health and the current value to the current health. then update both when the linked units life current/life maximum changes.
Thank you everyone.
How can I set the color of the "filling" of a progress bar? (not the background)
Currently it's either green, blue, or orange. It's different one each time I load the map.
@dubo863: Go
Looks for a function to set dialog item color. I think that should work.
That color is based on the race you're playing as. Green = terran, blue = protoss, and orange = zerg.
My advice? Forget default progress bars. They're fugly. Do your own bar with your own image.
@FuzzYD: Go
That changes the border but not the filling.
@OneSoga: Go
How do I do that?
@dubo863: Go
Ah.. if that's the case, I'm not sure. Never actually used progress bars before.