diff --git a/README.md b/README.md index 6a116ba..7a83654 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ $ ! ; Clear temporary storage ``` + M10 10 h 80 v 80 h -80 Z ; Draw a square outline + M10 80 C 40 10, 65 10, 95 80 S 150 150, 180 80 ; Draw a bezier ++ M 100, 100 m -75, 0 a 75,75 0 1,0 150,0 a 75,75 0 1,0 -150,0 ; Draw a circle ``` ##Stroke* diff --git a/scripts/commander.js b/scripts/commander.js index 2e235c2..9001a37 100644 --- a/scripts/commander.js +++ b/scripts/commander.js @@ -67,6 +67,7 @@ function Commander(element,element_input) var key = content[0]; content.shift(); this.cmd = new Command(content); + ronin.module = null; switch(key) { case "@": diff --git a/scripts/ronin.hint.js b/scripts/ronin.hint.js index 8993a62..7e44b1a 100644 --- a/scripts/ronin.hint.js +++ b/scripts/ronin.hint.js @@ -6,6 +6,14 @@ function Hint(element) this.update = function() { - this.element.innerHTML = !ronin.module ? "Missing" : ronin.module.hint(commander.cmd); + if(ronin.module){ + this.element.innerHTML = ronin.module.hint(commander.cmd); + this.element.style.display = "block"; + } + else{ + this.element.style.display = "none"; + } + + console.log(ronin.module); } } \ No newline at end of file diff --git a/scripts/ronin.vector.js b/scripts/ronin.vector.js index 3172ae3..454ad60 100644 --- a/scripts/ronin.vector.js +++ b/scripts/ronin.vector.js @@ -24,7 +24,4 @@ function Vector() { return "Vector: " } - - // Demo: - // > 5 #ff0000;+ M10 80 C 40 10, 65 10, 95 80 S 150 150, 180 80 } \ No newline at end of file