Don't paint custom string parameters as reporters by tjvr · Pull Request #511 · scratchblocks/scratchblocks · GitHub
Skip to content

Don't paint custom string parameters as reporters#511

Open
tjvr wants to merge 1 commit into
mainfrom
507-string-parameter-reporter
Open

Don't paint custom string parameters as reporters#511
tjvr wants to merge 1 commit into
mainfrom
507-string-parameter-reporter

Conversation

@tjvr

@tjvr tjvr commented Apr 14, 2024

Copy link
Copy Markdown
Member

If a string parameter like [x position] appears inside a define block outline, it was previously rendered as the Motion block (x position).

After this fix, it will correctly be rendered as a custom parameter.

Closes (the first half of) #507.

Before After
scratchblocks(4)
define test (x position) [y position] (1) <mouse down?> <>
say (x position)
say (y position)

Thanks to @ego-lay-atman-bay for reporting!

If a string parameter like `[x position]` appears inside a define block
outline, it was previously rendered as the Motion block `(x position)`.

After this fix, it will correctly be rendered as a custom parameter.

Closes (the first half of) #507.
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