From 6ceb37b6c16b85d8800a52a9a40046b5f6e3cae3 Mon Sep 17 00:00:00 2001 From: David Leoni Date: Sun, 6 Sep 2020 20:54:42 +0200 Subject: [PATCH] BOTCH.debugMode #31 --- src/extensions/botch/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/extensions/botch/index.js b/src/extensions/botch/index.js index 9b3fe736905..17c36f36189 100644 --- a/src/extensions/botch/index.js +++ b/src/extensions/botch/index.js @@ -26,6 +26,7 @@ class Scratch3Botch { } constructor (runtime) { + this.debugMode = true; this.runtime = runtime; this.storage = this.runtime.storage; // map that contains the organism or enemies @@ -97,6 +98,12 @@ class Scratch3Botch { this.runtime.on('targetWasCreated', this._onTargetCreated); } + switchDebugMode (){ + this.debugMode = !this.debugMode; + // TO DO would like to force refresh, tried to emit Runtime.PROJECT_CHANGED and didn't work + + } + getInfo () { return { id: 'botch',