Added typography tool
This commit is contained in:
@@ -52,7 +52,7 @@ function Hint(element)
|
||||
var s = "<span class='module'>Modules</span>";
|
||||
|
||||
for (var key in ronin.modules){
|
||||
s += "<span class='param'>"+ronin.modules[key].constructor.name.substr(0,2)+"<span> <span class='value'>"+key+"</span> ";
|
||||
s += "<span> <span class='value'>"+key+"</span> <span class='param'>"+ronin.modules[key].constructor.name.substr(0,2)+" ";
|
||||
}
|
||||
|
||||
return s;
|
||||
|
||||
@@ -16,6 +16,7 @@ function Ronin()
|
||||
this.eraser = new Eraser(".");
|
||||
this.surface = new Surface("#");
|
||||
this.eye = new Eye("*");
|
||||
this.typo = new Typographe("&");
|
||||
|
||||
this.cursor = new Cursor();
|
||||
|
||||
@@ -31,6 +32,7 @@ function Ronin()
|
||||
this.modules[this.eraser.rune] = this.eraser;
|
||||
this.modules[this.surface.rune] = this.surface;
|
||||
this.modules[this.eye.rune] = this.eye;
|
||||
this.modules[this.typo.rune] = this.typo;
|
||||
|
||||
this.cursors = [];
|
||||
|
||||
@@ -47,7 +49,6 @@ function Ronin()
|
||||
|
||||
this.position_in_window = function(p)
|
||||
{
|
||||
console.log(p.x);
|
||||
return new Position(p.x + parseInt(this.surface.element.style.marginLeft),p.y + parseInt(this.surface.element.style.marginTop));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user