gree / lwf

LWF - Lightweight SWF
http://gree.github.com/lwf/
zlib License
627 stars 167 forks source link

Text fields are not respecting the alpha of the MovieClip that contains it #162

Open DelSystem32 opened 8 years ago

DelSystem32 commented 8 years ago

Or rather, they do something weird with its parent's alpha. See the following image:

incorrect_alpha

On top we see how it's supposed to look, all dark blue colors are at 50% alpha. On the bottom we see how LWF renders it (ignore the scale change), the square bitmaps are fine but the text field is not.

It appears to have gotten a lower alpha and its color has become brighter.

The left square is a MovieClip on the root, set to "Export as Bitmap". Then there's another MovieClip on the root, NOT set to export as a bitmap. It contains a text field and the right square, which is a sub-MovieClip set to export as bitmap.

The left square MovieClip on the root is set to have 50% alpha. The other MovieClip on the root (containing both the text field and the right square) is also set to have 50% alpha.

Why isn't the text field changing its colors correctly while it works for the right square? They are both children of a MovieClip with 50% alpha.

This could have something to do with what I described in: https://github.com/gree/lwf/issues/148