Sorry, we don't support your browser.  Install a modern browser

[Public Beta] XML UI ProgressBar ignores its background color and image#3241

In the v20 public beta, a legacy XML ProgressBar always draws a white background. Its color and image attributes are ignored. fillImageColor still works. In v14 the same XML draws the background color I set.

Repro (Global XML UI; object XML UI does the same):

<ProgressBar width="600" height="50" showPercentageText="false" color="[#000000](/000000)" fillImageColor="#31b32b" percentage="40"/>

Expected (v14): black bar, 40% green.
Beta: white/light grey bar, 40% green.

Repro save attached: ProgressBar_background_repro.json. Put it in your Saves folder and load it. It has the bar in Global UI and on one object, each next to a Panel version that draws correctly.

What I tried:

  • color as #000000, #000000FF, rgba(0,0,0,1) and Black. No change.
  • image set to a PNG URL. No change.
  • Setting them at runtime with UI.setAttribute. UI.getAttribute returns the value I set, but it is not drawn.
  • fillImageColor changes show straight away, so the bar is updating.
  • All my theme settings are at default and “Let game set theme” is off.
  • A plain Panel with the same color draws correctly, so I worked around it with a black Panel and a fill Panel sized by width.

Why it matters: our mod shows damage and power above every character with white text on a black ProgressBar. On the beta the background goes white and the text is unreadable. The ProgressBar docs in the beta still list color as “Background Color”, so existing mods expect it to work.

Image: the repro in Global UI, above the same bar built from a black Panel and a fill Panel.

Version: v20.0 public_beta, Windows 11.

5 hours ago
Changed the status to
Research
34 minutes ago