Skip to content

Add support for rendering NineSlice via canvas #7168

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 3 commits into
base: v4.0.0
Choose a base branch
from

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)

  • Adds a new feature

This PR adds the ability for NineSlice game objects to render via the canvas renderer, done by drawing 9 separate images (or 3, if it is set to be a three-slice) based on the width, height, leftWidth, rightWidth, topHeight and bottomHeight properties of the NineSlice. The vertices/quads are not used here.

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