Skip to content

Commit

Permalink
Update Extension_Builder.js
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Orangemoon authored Mar 19, 2024
1 parent 363eb2c commit 88a2bab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Extension_Builder/Extension_Builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ class ExtensionBuilder {
return this.internal.JSON.blocks[blockIndex];
};

this.internal.JSON.blocks[blockIndex].allowMonitor = () => {
this.internal.JSON.blocks[blockIndex].disableMonitor = false;
return this.internal.JSON.blocks[blockIndex];
};

this.internal.JSON.blocks[blockIndex].stopMoniter = () => {
this.internal.JSON.blocks[blockIndex].disableMonitor = true;
return this.internal.JSON.blocks[blockIndex];
Expand Down Expand Up @@ -197,15 +202,12 @@ class ExtensionBuilder {
this.addLabel = (Label) => {
Label = Label || "N/A";
const LabelJSON = {
opcode: "__NOUSEOPCODE",
blockType: "label",
text: Label,
};

this.internal.JSON.blocks.push(LabelJSON);
};

this.__NOUSEOPCODE = () => {};
//Seperate this big chunk from the rest
this.internal.createBase = () => {
extensionName = extensionName || "Extension";
Expand Down

0 comments on commit 88a2bab

Please sign in to comment.