Slight rebalancing on Hacknet Nodes. Added buttons for purchase multipliers. They don't work yet though

This commit is contained in:
Daniel Xie
2017-05-16 16:22:54 -05:00
parent f63cd21bfc
commit 47e4f5b9dd
6 changed files with 61 additions and 21 deletions
+2 -2
View File
@@ -21,11 +21,11 @@ function scriptEditorInit() {
var start = this.selectionStart;
var end = this.selectionEnd;
// set textarea value to: text before caret + tab + text after caret
//Set textarea value to: text before caret + four spaces + text after caret
spaces = " ";
this.value = this.value.substring(0, start) + spaces + this.value.substring(end);
// put caret at right position again
//Put caret at after the four spaces
this.selectionStart = this.selectionEnd = start + spaces.length;
}
}