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

Fix 2024.6 masks not showing #1963

Merged
merged 2 commits into from
Nov 29, 2024

Conversation

luizzeroxis
Copy link
Contributor

@luizzeroxis luizzeroxis commented Nov 2, 2024

Description

In GMS 2024.6, masks have the size of the bounding box instead of the same as the sprite. This caused them to not display in the UI if these sizes were different. This PR makes so the mask size is stored so it's displayed correctly in the UI.

Caveats

None

Notes

Here's a data.win that has a mask which would not work without theses changes: fix-2024-6-masks-test.zip

Copy link

github-actions bot commented Nov 2, 2024

Comment on lines 350 to 352
// Not in the data file
public uint Width { get; set; }
public uint Height { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add proper XML documentation for these.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you for real? What documentation can I write about Width and Height?!?!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Written in discord but also writing here for prosperity:
Mentioning that its the width/height of the clipmask and an utmt only attribute would suffice for me.
A docstring does not need to be a full essay

@Miepee Miepee merged commit f1e6da3 into UnderminersTeam:master Nov 29, 2024
5 checks passed
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.

2 participants