Skip to content

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

Merged
merged 5 commits into from
Mar 23, 2024

Conversation

DragonMoffon
Copy link
Collaborator

This is so the alpha state is stored when setting visibility. Originally, it overrode the alpha, which was stinky.

This is so the alpha state is stored when setting visibility. originally it overrode the alpha which was stinky.
@DragonMoffon DragonMoffon changed the title add visible flag and strip out changing alpha when setting visible. Add "visible" flag to BaseSprite Mar 19, 2024
Copy link
Member

@pushfoo pushfoo left a 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.

@DragonMoffon DragonMoffon changed the title Add "visible" flag to BaseSprite Improved behavior or "visible" setter and getter properties in BasicSprite. Mar 20, 2024
@DragonMoffon DragonMoffon changed the title Improved behavior or "visible" setter and getter properties in BasicSprite. Improved behavior of "visible" setter and getter properties in BasicSprite. Mar 20, 2024
Copy link
Member

@pushfoo pushfoo left a 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.

DragonMoffon and others added 2 commits March 21, 2024 16:33
* Correct and expand docstring for BasicSprite.visible

* Add comment explaining that SpriteList handles the alpha/visible interaction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants