-
Notifications
You must be signed in to change notification settings - Fork 343
Improved behavior of "visible" setter and getter properties in BasicSprite. #2029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved behavior of "visible" setter and getter properties in BasicSprite. #2029
Conversation
This is so the alpha state is stored when setting visibility. originally it overrode the alpha which was stinky.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TL;DR: There are nasty, subtle details which need changes to take care of.
The general changes are good, however. I also think we might have uncovered room for improvement in Color.from_iterable
since we leave an unpack underflow uncaught, and it results in a somewhat vague exception.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should fix this while we're here.
* Correct and expand docstring for BasicSprite.visible * Add comment explaining that SpriteList handles the alpha/visible interaction
This is so the alpha state is stored when setting visibility. Originally, it overrode the alpha, which was stinky.