Rarity

Rarity

18M Downloads

Add an option to adjust the progress bar colors

strongbow25 opened this issue ยท 3 comments

commented

Is there anyway to add an option to customize the color of the progress bar? Maybe to use class colors? TIA. :)

commented

There are some customization options for the progress bar, such as setting textures or fonts. Colors are hardcoded right now:

self.barGroup:SetColorAt(1.00, 1, 0, 0, 1) -- These SetColorAt calls appear to take longer and longer to execute every time they are called.
self.barGroup:SetColorAt(0.66, 1, 1, 0, 1) -- Only do this when absolutely necessary.
self.barGroup:SetColorAt(0.33, 0, 1, 1, 1)
self.barGroup:SetColorAt(0.00, 0, 0, 1, 1)

It shouldn't be difficult to make them adjustable, although I don't know that class colors make sense in this case?
The thresholds are percentages towards completion, so every 33% the color changes. You could override them with a script.

commented

Thanks for the response. I suggested class colors as my UI uses the class colors everywhere. :) Not sure how to script the color changes but I've modified the code to make all 4 steps purple for now. Thanks again. :)

commented

The progress bar is in the process of being reworked (#891, #884, #856). I'll look into customization once that's completed.