Is it possible to superpose 2 progressbar, each with 2 different colors?

Godot Version

4.2.2

Question

Is it possible to superpose 2 progressbar, make them have a transparent background, so that I can have 2 progress on the same bar? like this?
image
image

I tried setting both the background colors to transparent, but it doesn’t seem to work.

maybe with the modulate-property of CanvasItem?

  • In both Progressbars, go to Layout → Theme Overrides → Styles → Background
  • Add StyleBoxEmpty

Actually I made it work by changing the order of progressbar, don’t know why it works.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.