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

Wrap sprite methods destroy, setTint, removeTint #28865

Merged
merged 1 commit into from Jun 4, 2019

Conversation

ajpal
Copy link
Contributor

@ajpal ajpal commented May 31, 2019

I think the issue earlier was that I renamed the parameter in the block config from THIS to SPRITE. Leaving the parameter name the same, but making it not a methodCall seems to work as expected.
Blocks render correctly:
image

Then I just added little wrapper functions in the interpreted libraries so that the methods are still called.

This change is necessary to enable moving the sprite lab library to run natively.

@ajpal ajpal merged commit 4c408d3 into staging Jun 4, 2019
@ajpal ajpal deleted the blockly-sprite-methods branch June 4, 2019 13:20
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.

None yet

3 participants