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

Adds a grid + Updates Blockly version for use of new features #499

Merged

Conversation

AmbientOSX
Copy link
Contributor

@kadst43 As a consequence of the scripting changes Im trying to make I found a pretty easy way to solve the hidden block and bad connections issue so I felt like sharing.

@@ -100,7 +100,8 @@ define( [ "module", "vwf/view", "jquery", "vwf/model/blockly/JS-Interpreter/acor
self.kernel.setProperty( childID, "toolbox", self.options.toolbox );
Blockly.inject( document.getElementById( self.options.divName ), {
path: this.options.blocklyPath,
toolbox: document.getElementById( self.options.toolbox )
toolbox: document.getElementById( self.options.toolbox ),
"grid": { spacing: 40, length: 1, colour: '#ccc', snap: true }
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be specified in the application, rather than in the driver?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I tried to get it to work by specifying in index.config.yaml and making the appropriate changes on this side.. it didn't set properly. Since its not a primary task I didnt want to spend time debugging why config wasnt working for the moment.

@kadst43
Copy link
Contributor

kadst43 commented May 19, 2015

👍

AmbientOSX pushed a commit that referenced this pull request May 19, 2015
…pdates+grid

Adds a grid + Updates Blockly version for use of new features
@AmbientOSX AmbientOSX merged commit 1aea167 into branch/mars-game-development May 19, 2015
@AmbientOSX AmbientOSX deleted the branch/blockly-updates+grid branch August 12, 2015 19:32
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