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

Grid setOutlineStyle() is not a function #6962

Closed
samme opened this issue Nov 23, 2024 · 1 comment
Closed

Grid setOutlineStyle() is not a function #6962

samme opened this issue Nov 23, 2024 · 1 comment

Comments

@samme
Copy link
Contributor

samme commented Nov 23, 2024

  • Phaser Version: 4.0.0-beta.2

Description

Create Grid game object with an outlineFillColor argument.

[Error] TypeError: this.setOutlineStyle is not a function.

Example Test Code

https://phaser.io/sandbox/kzfDwcVC

@BenjaminDRichards
Copy link
Collaborator

Thanks for spotting this! There must have been a regression at some point. The setOutlineStyle method was supposed to be removed, in favor of the setStrokeStyle method common to all Shape objects. It made no sense to have a Shape which didn't use Stroke and had a completely separate Outline.

I've corrected this oversight, and changed the object to use stroke in all documentation, property, and parameter names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants