Skip to content

Commit

Permalink
Update data_category.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyGamer13 committed Jan 4, 2024
1 parent 9f13677 commit 97d6818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/data_category.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ Blockly.VariableCategory = function(workspace) {

Blockly.VariableCategory.addCreateButton(xmlList, workspace, 'VARIABLE');
if (globalVars.length > 0) {
Blockly.VariableCategory.addLabel(xmlList, "Public Variables")
Blockly.VariableCategory.addLabel(xmlList, "Variables for all sprites")
for (var i = 0; i < globalVars.length; i++) {
Blockly.VariableCategory.addDataVariable(xmlList, globalVars[i]);
}
}
if (localVars.length > 0) {
Blockly.VariableCategory.addLabel(xmlList, "Private Variables")
Blockly.VariableCategory.addLabel(xmlList, "Variables for this sprite")
for (var i = 0; i < localVars.length; i++) {
Blockly.VariableCategory.addDataVariable(xmlList, localVars[i]);
}
Expand Down

0 comments on commit 97d6818

Please sign in to comment.