That’s exactly what the question was. So yeah, it’s good.
As I said previously, when I set an AlphaMap (which is a mask), I don’t get ANYTHING at all to show through.
Let’s take this from the start.
First of all, Common/Extras/indicator_am_x.png isn’t an AlphaMap. Both the white and the black and fully opaque. It won’t work. I copied that file and removed the white. That should now work as a mask, uhh AlphaMap. That copy is now named indicator_am_x2.png. The image used in the constructor is the one it should use by default, indicator_ol_x.png
Now. When I use the Indicator without an alpha, it works great except for the part where the colorized indicator is a rectangle and since the background image is a capsule, it doesn’t work. But that’s why the mask exists; to hide everything not transparent.
Or: if (alphaColorValue >= 255) discardPixel else drawPixel(pixelIntensity - transparency);
At this point, if I put an AlphaMap image, the Colored Indicator doesn’t even show. I do see the percentage go up, but no color. This isn’t actually 100% true. If both images (background + alpha map) are similarly shaped (!?), I have a bit of color that shows at the start. If I use two different kind of images, I get nothing at all.
That last part makes no sense at all. The only difference between the similar images and the not similar ones is the image’s actual size. indicator_ol_x and indicator_am_x are both 109x18 and the other set has completely different values: 109x18 and 720x50. This might explain why one will show a tiny bit of color while the other can’t/won’t? Nope. To test I resized the 720x50 to 109x18 and it remained the same: nothings goes through it. I’m at a loss to explain the behavior.
No need to say that this is confusing to say the least.
Here’s visual clue of what’s going on:
Without a mask:
With a mask (indicator files):
Hopefully that’ll help you find the cause of this.