Page MenuHomeFeedback Tracker

Missing scripting command to change progress bar color (like "<b><i>ctrlSetBarColor</i></b>")
Closed, ResolvedPublic

Description

There is a command <i>"ctrlSetBackgroundColor"</i>, but no command to change the color of a process bar during runtime (which is the "barColor[]" in a corresponding UI class).

I've missed it several times now and it would be really helpful to have a command <i>"ctrlSetBarColor"</i>.

Alternatively, it would be preferable to have other commands like <i>"ctrlSetBackgroundColor"</i> expanded in their functionality so they're usable for progress bars and other controls, too.

Details

Legacy ID
3158703972
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting

Event Timeline

HereisJohnny edited Additional Information. (Show Details)
HereisJohnny set Category to Scripting.
HereisJohnny set Reproducibility to Always.
HereisJohnny set Severity to None.
HereisJohnny set Resolution to Fixed.
HereisJohnny set Legacy ID to 3158703972.May 7 2016, 7:26 PM

Looks like there is no scripted way of controlling progress colour. other ctrl commands should either be expanded (preferred) or new created and not just for progress.

By "expand" you mean e.g. changing <i>"ctrlSetForegroundColor"</i> so it can alter progress bar color as well?

yes and also expand ctrlSetBackgroundColor, not sure why you singled it out, it doesnt work with progress either

I know. I tried it with both, but <i>ctrlSetForegroundColor</i> seemed most "compatible" with my intention.

But you're right. All in all it's reasonable to extend not only one specific command, but all related as well.

Stop bumping this ticket, it is not going to get solved any sooner.

This would be great imo. Shouldn't have to create colored layers and such things just to make a progress bar change colors.

+1 Upvoted

according to changelog:

Improved: Progress bar color can be set via the ctrlSetTextColor command

Tested - works

I'm guessing this is still dev branch, because I neither feel unable to perform that nor to find the respective changelog.