diff --git a/scripts/modules/typographe.js b/scripts/modules/typographe.js index 87dd04b..283246c 100644 --- a/scripts/modules/typographe.js +++ b/scripts/modules/typographe.js @@ -25,6 +25,7 @@ function Typographe(rune) this.passive = function(cmd) { + this.layer.clear(); if(cmd.variable("text")){ this.add_text(this.layer.context(),cmd); } @@ -34,7 +35,7 @@ function Typographe(rune) { var ctx = context; - var text = cmd.variable("text").value; + var text = cmd.variable("text").value.replace("_"," "); var position = cmd.position() ? cmd.position() : new Position(20,40); var color = cmd.color() ? cmd.color() : new Color("#000000"); var size = cmd.value() ? cmd.value().int : 40;