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

Location variables #23204

Merged
merged 6 commits into from Jun 21, 2018
Merged

Location variables #23204

merged 6 commits into from Jun 21, 2018

Conversation

balderdash
Copy link
Contributor

No description provided.

[Blockly.BlockValueType.LOCATION]: [block.getTitleValue(inputConfig.name)],
};
};
block.renameVar = function (oldName, newName) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can some of these inherit from Blockly.Blocks.variables_get?

"args": [
{
"name": "VAR",
"assignment": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Tempting to make this a separate field instead of part of "args", but it makes sense that these get populated from the block inputs, in order. If we could start over, maybe these would be called "fields" instead of "args"?

@joshlory
Copy link
Contributor

How does a level builder add the "Locations" custom category? Do we need to add an entry to the list in PR #23198?

@joshlory
Copy link
Contributor

You may also want the customSimpleDialog impl, could extract from here: https://github.com/code-dot-org/code-dot-org/pull/22933/files#diff-958e7ea8772859ff9767223f7dd45130R8.

That said, we prob don't care about renaming vars in the preview Block Space.

Copy link
Contributor

@joshlory joshlory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of this feedback should be blocking... good to merge as-is.

@balderdash balderdash merged commit 01932f5 into staging Jun 21, 2018
@balderdash balderdash deleted the location-variables branch July 24, 2018 23:45
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

2 participants