Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blocks:advanced_scripting:example1 [2019-02-24 16:29] admin [User Script Case Study] |
blocks:advanced_scripting:example1 [2019-03-06 15:51] (current) admin Foxed typo in initComms |
||
---|---|---|---|
Line 73: | Line 73: | ||
*/ | */ | ||
initComms() { | initComms() { | ||
- | if (this.networkPort.connected) {} | + | if (this.networkPort.connected) { |
this.networkPort.sendText(' | this.networkPort.sendText(' | ||
this.networkPort.sendText(' | this.networkPort.sendText(' | ||
Line 126: | Line 126: | ||
* The script must be saved in a file named LeuzeScript.ts in the script/user directory of the Blocks root. | * The script must be saved in a file named LeuzeScript.ts in the script/user directory of the Blocks root. | ||
* It compiles to a file named LeuzeScript.js, | * It compiles to a file named LeuzeScript.js, | ||
+ | * The script doesn' | ||
* The class name must match the filename (minus the .ts/.js file extension). | * The class name must match the filename (minus the .ts/.js file extension). | ||
* Several // | * Several // |