Began working on methods
This commit is contained in:
@@ -84,8 +84,8 @@ function Command(content)
|
||||
this.setting = function(name)
|
||||
{
|
||||
for (i = 0; i < this.content.length; i++) {
|
||||
if(this.content[i].indexOf(":") >= 0){
|
||||
var parts = this.content[i].split(":");
|
||||
if(this.content[i].indexOf("=") >= 0){
|
||||
var parts = this.content[i].split("=");
|
||||
if(parts[0] == name){
|
||||
return new Setting(parts[0],parts[1]);
|
||||
}
|
||||
|
||||
@@ -32,9 +32,9 @@ starting_canvas.width = parseInt(starting_canvas.width/40) * 40;
|
||||
starting_canvas.height = parseInt(starting_canvas.height/40) * 40;
|
||||
|
||||
ronin.terminal.query("~ "+ronin.timestamp());
|
||||
ronin.terminal.query("@ size:"+starting_canvas.render());
|
||||
ronin.terminal.query("@ layer:Main");
|
||||
ronin.terminal.query("- color:#ff0000");
|
||||
ronin.terminal.query("@ size="+starting_canvas.render());
|
||||
ronin.terminal.query("@ layer=Main");
|
||||
ronin.terminal.query("- color=#ff0000");
|
||||
// ronin.terminal.query("# fill=#ff0000");
|
||||
// ronin.terminal.query("- 0,0");
|
||||
// ronin.terminal.query("- 1,1");
|
||||
|
||||
@@ -19,13 +19,13 @@ function Ronin()
|
||||
this.modules[this.surface.rune] = this.surface;
|
||||
this.modules[this.fileload.rune] = this.fileload;
|
||||
this.modules[this.filesave.rune] = this.filesave;
|
||||
this.modules[this.overlay.rune] = this.overlay;
|
||||
this.modules[this.render.rune] = this.render;
|
||||
this.modules[this.brush.rune] = this.brush;
|
||||
this.modules[this.eye.rune] = this.eye;
|
||||
this.modules[this.typo.rune] = this.typo;
|
||||
this.modules[this.vector.rune] = this.vector;
|
||||
this.modules[this.terminal.rune] = this.terminal;
|
||||
this.modules[this.overlay.rune] = this.overlay;
|
||||
|
||||
this.modules[this.cursor.rune] = this.cursor;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user