write()/read() now work for script files. You can now use angled brackets in tprint() (and create DOM elements). Added CodingContract implementation

This commit is contained in:
danielyxie
2018-09-14 16:03:31 -05:00
parent b66c3c6fc4
commit 420fd0c5ad
12 changed files with 912 additions and 74 deletions
+5 -4
View File
@@ -371,12 +371,13 @@ function checkValidFilename(filename) {
return false;
}
function Script() {
this.filename = "";
this.code = "";
function Script(fn = "", code = "", server = "") {
this.filename = fn;
this.code = code;
this.ramUsage = 0;
this.server = ""; //IP of server this script is on
this.server = server; //IP of server this script is on
this.module = "";
if (this.code !== "") {this.updateRamUsage();}
};
//Get the script data from the Script Editor and save it to the object