Commit graph

3224 commits

Author SHA1 Message Date
Karishma Chadha
9ddf8a79a9 Adding ability to create a new broadcast message using the dropdown option. Broadcast messages are now typed variables with the variable type as 'broadcast_msg'. Needed to do some extra work to translate variables from blocks to XML correctly because the default broadcast messages were getting added as new variables with the incorrect type upon trying to move any of the broadcast message related blocks from the toolbar into the workspace because it was trying to create a new variable with a different type than already existed. Currently, broadcast message names conflict with variable names, and I need to make it so that isn't so. Additionally, need to update the source block's message name after creation of a new message via the dropdown. 2017-11-16 11:45:59 -05:00
Paul Kaplan
b5714adc01
Merge pull request #1224 from paulkaplan/use-list-block
Use data_listcontents instead of data_variable for list getter block
2017-11-13 11:01:53 -05:00
Rachel Fenichel
637fdb5722
Merge pull request #1219 from rachel-fenichel/feature/input_shapes
Make inputs own input shapes, and dispose of them correctly
2017-11-10 09:35:12 -08:00
Paul Kaplan
3838208bf7 Use data_listcontents instead of data_variable for list getter block 2017-11-10 09:36:32 -05:00
Rachel Fenichel
d014a7de6e Make inputs own input shapes, and dispose of them correctly 2017-11-09 13:29:51 -08:00
Rachel Fenichel
6cdf691860
Merge pull request #1214 from rachel-fenichel/bugfix/custom_procedure_multimutation
Fix applying multiple mutations to a single procedure_callnoreturn_internal block
2017-11-07 13:33:37 -08:00
Rachel Fenichel
e836137ebf
Merge pull request #1209 from LLK/rachel-fenichel-patch-1
Check workspace.isDragging() instead of Blockly.dragMode_
2017-11-07 13:32:36 -08:00
Rachel Fenichel
9d8a597490 Fix naming 2017-11-06 15:32:56 -08:00
Rachel Fenichel
181f9c6c39 Documentation, fixes for return values 2017-11-06 15:31:40 -08:00
Rachel Fenichel
5010a330af Handle repeated mutations on the internal procedure caller block 2017-11-06 15:12:34 -08:00
Paul Kaplan
fa42959241
Merge pull request #1212 from paulkaplan/bring-back-lists
Bring back the list data category
2017-11-06 15:37:55 -05:00
Paul Kaplan
86c5f3b3f2 Bring back the list data category 2017-11-06 13:42:45 -05:00
Paul Kaplan
cc410c1326
Merge pull request #1211 from paulkaplan/fix-camel-case-xml
Change variableType to variabletype in xml.
2017-11-06 13:42:08 -05:00
Paul Kaplan
807743d20f Change variableType to variabletype in xml.
Scratch-blocks version of blockly pr #1422
2017-11-06 10:29:43 -05:00
Rachel Fenichel
df2e5c90bb
Check workspace.isDragging() instead of Blockly.dragMode_
Scratch-blocks version of https://github.com/google/blockly/pull/1418
2017-11-03 16:08:00 -07:00
Rachel Fenichel
8008975a2d
Merge pull request #1203 from rachel-fenichel/bugfix/custom_procedure_multimutation
Handle mutating procedure calls multiple times
2017-11-03 15:47:29 -07:00
Rachel Fenichel
0a6c8470ec use goog.dom.createDom instead of Blockly.Xml.textToDom 2017-11-02 16:50:03 -07:00
Rachel Fenichel
1329bdf5f7 Remove argumentNames and argumentDefaults from procedures_callnoreturn blocks; add comments 2017-11-02 15:38:31 -07:00
Rachel Fenichel
514fa043e2 Get rid of console.log and console.warn 2017-11-02 12:23:17 -07:00
Paul Kaplan
f8fbd2cc76
Merge pull request #1204 from paulkaplan/fix-variable-rename
Fix renaming variable from getter context menu
2017-11-02 11:11:03 -04:00
Paul Kaplan
998e36f01e Fix renaming variable from getter context menu 2017-11-02 10:41:59 -04:00
Rachel Fenichel
5fd27a1fc7 Add JSDoc 2017-11-01 14:57:06 -07:00
Rachel Fenichel
5a0cf50516 Use procedure utility functions for some other blocks 2017-11-01 14:14:11 -07:00
Rachel Fenichel
39a651717b procedure call blocks can now have the same mutation applied twice 2017-11-01 13:51:14 -07:00
DD Liu
570ee2a794
Merge pull request #1202 from LLK/revert-1193-feature/eyes
Revert "Improve insertion markers"
2017-11-01 14:32:49 -04:00
DD Liu
317cb82581
Revert "Improve insertion markers" 2017-11-01 14:32:21 -04:00
DD Liu
e8ee142359
Merge pull request #1201 from LLK/revert-1196-feature/eyes2
Revert "Improve insertion markers"
2017-11-01 14:31:47 -04:00
DD Liu
b01dcafcf8
Revert "Improve insertion markers" 2017-11-01 14:30:13 -04:00
Rachel Fenichel
63ade2e6bf Move functions into a new Blockly.ScratchBlocks.ProcedureUtils namespace 2017-11-01 11:15:09 -07:00
Eric Rosenbaum
6ae469cd0a
Merge pull request #1198 from ericrosenbaum/feature/category-menu-style
Tighten up the category menu
2017-11-01 11:53:17 -04:00
Eric Rosenbaum
8e2f353cff Adjust toolbox width to use new category menu width 2017-11-01 11:43:03 -04:00
Eric Rosenbaum
619fb631e7 Set category menu width in px for clarity 2017-11-01 11:42:50 -04:00
Rachel Fenichel
e526166dd1 Progress on being able to apply the same mutation multiple times to a block 2017-10-31 18:28:17 -07:00
Eric Rosenbaum
3f40225536 Tighten up the category menu
To make space for additional items
2017-10-31 18:30:24 -04:00
Paul Kaplan
31a3a13b79
Merge pull request #1197 from paulkaplan/default-change-by-value
Default change by value
2017-10-31 17:23:03 -04:00
Paul Kaplan
db865f24f4 Remove unused variable category code.
It had been moved to the data_category.js file. It is dead code now.
2017-10-31 09:34:19 -04:00
Paul Kaplan
d735d33351 Change "change by" default value to 1 instead of 0. 2017-10-31 09:30:35 -04:00
Paul Kaplan
2cf42d13db Make XML creation for data category more explicit.
But no changes to defaults.
2017-10-31 09:29:58 -04:00
DD Liu
858da4204c
Merge pull request #1196 from fsih/feature/eyes2
Improve insertion markers more
2017-10-30 20:23:59 -04:00
DD Liu
b0a3e80c65 fix insertion blocks that shouldnt be there 2017-10-30 20:17:14 -04:00
Rachel Fenichel
0eb4e2ee81
Merge pull request #1193 from rachel-fenichel/feature/eyes
Improve insertion markers
2017-10-30 13:08:15 -07:00
Rachel Fenichel
a2f2612f02 disable for C and E blocks 2017-10-30 13:02:24 -07:00
Rachel Fenichel
519881e982
Merge pull request #1187 from rachel-fenichel/feature/apply_mutation
Make the 'ok' button apply a mutation in the custom procedure playground
2017-10-27 17:45:54 -07:00
Rachel Fenichel
d87583f0a9
Merge pull request #1189 from LLK/bugfix/closure_https
Switch build to HTTPS
2017-10-27 17:01:06 -07:00
Rachel Fenichel
caea22c3da
Switch build to HTTPS
See https://github.com/google/blockly/issues/1399 and https://github.com/google/blockly/pull/1402
2017-10-27 16:48:41 -07:00
Rachel Fenichel
547190c9c1 Avoid double initSvg calls. 2017-10-27 16:30:15 -07:00
Rachel Fenichel
a02d69e09b Make the 'ok' button apply a mutation in the custom procedure playground 2017-10-27 11:12:46 -07:00
picklesrus
b48b0dc67e Add the new clearWorkspaceAndLoadFromXml to the set of globals so the compiler does not rename it. This should have been part of #1178 (#1184) 2017-10-26 11:16:45 -07:00
Rachel Fenichel
8a0dd649d7 Merge pull request #1181 from Kenny2github/patch-1
Remove "fake some drags!" button from playground
2017-10-25 14:56:36 -07:00
Paul Kaplan
e04cf81727 Merge pull request #1182 from paulkaplan/fix-flyout-var-ids
Re-fix the flyout variable block IDs
2017-10-25 14:43:53 -04:00