BUG: FlxUI not applying alpha component to widgets

  • So, now I am doing simple tests on an FlxUISubstate. This is what my ui xml looks like:

    <?xml version="1.0" encoding="utf-8" ?>
    	<chrome src="ui/chrome" x="0" y="444" width="192" height="180" slice9="6,6,12,12" color="0x4400FFFF" />

    If the color fields works as an ARGB, then the problem is my PNG gets correctly tinted but its transparency is not affected at all. I tried it with other widgets, and it's the same thing. Then tried importing an already semi-transparent PNG , and it obviously works.

    So, is there something in particular I should be doing or is this a weird bug?

    Thanks a lot!

  • Found a secret: if you use the "alpha" (0~1) attribute for any widget, the opacity works as intended. It's not in the GitHub documentation, and couldn't find it anywhere.

Log in to reply

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.