Skip to content

NineSlice improvements #7167

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

Open
wants to merge 2 commits into
base: v4.0.0
Choose a base branch
from
Open

Conversation

ChrisCPI
Copy link

Please do not update the README or Change Log, we will do this when we merge your PR.

This PR (delete as applicable)

  • Fixes some bugs

Describe the changes below:

  • Setting _width and _height in setSlices is now clamped to what it should be.
  • The setters for width and height now run setSize (the updateVertices call has also been moved there, and setSize now sets _width and _height instead of calling the setters). This fixes an issue where the hit area for input wouldn't be updated when setting the width/height in this manner.
  • setFrame will always run updateUVs (fix NineSlice setFrame() doesnt work when updateSize is false #7110). Before this it was only being run through setSizeToFrame, meaning the frame would not appear to change when the updateSize parameter was false.

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.

1 participant