Issue #22 new

Subviews tint their parents

Odonel
created an issue

A subview seems to tint it's parent. If I don't write love.graphics.setColor(255, 255, 255) at the end of the subviews draw function, the parent view will be transparently tinted or even opaque (depending on the set color).

Since this behavior is not described in the API, I think it might be an unknown issue.

Edit: I think it just tints the part of the view, which contains tiles from a map created by tiled. I just discovered, that the borders where not tiles are placed, don't get tinted.

Comments (4)

  1. Odonel reporter

    With version 1.4 and the deprecation of onDraw(), I see now, how drawing objects in Zoetrope is intended.

    The problem was: I did not create Sprites for rectangular fills and text messages, but draw them in the subview's onDraw function.

    Since this won't be possible in 1.4. anymore, most likely there won't be many people after me, doing it wrong ;)

  2. Log in to comment