Skip to content
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

AGS 4.0: implement Overlay.Flip #2619

Merged

Conversation

ivan-mogilko
Copy link
Contributor

@ivan-mogilko ivan-mogilko commented Dec 12, 2024

By user request, this implements Overlay.Flip property that flips overlay graphic in 3 possible ways.

/// Gets/sets the flip direction of this overlay.
attribute eFlipDirection Overlay.Flip;

For storage and serialization this uses a new field of type "SpriteTransformationFlags", and a position which was reserved in ags4 save format a while ago. It has flip flags now, but more could be added later as necessary. There's a conversion between script parameter and this new flag set.

NOTE: Software renderer has some bugs in ags4 branch, so switching from some flip to "no flip" does not update the overlay image. I'm planning to address that separately, there's a unfinished code brought by one of the older merges, that was never made to work in completion.

@ivan-mogilko
Copy link
Contributor Author

Rebased on top of #2620 in sake of convenient testing. Only one final commit belongs to the Overlay.Flip feature.

@ivan-mogilko ivan-mogilko merged commit 78c2be0 into adventuregamestudio:ags4 Dec 18, 2024
21 checks passed
@ivan-mogilko ivan-mogilko deleted the ags4--overlayflip branch December 18, 2024 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant