Implemented variables properly.

This commit is contained in:
Devine Lu Linvega
2016-12-20 11:16:47 -07:00
parent 6c3ed550d3
commit 27117db46c
10 changed files with 90 additions and 53 deletions

View File

@@ -28,6 +28,23 @@ function Hint(element)
e += 1;
}
s += " ";
s += this.print_variables(module);
return s;
}
this.print_variables = function(module)
{
if(module.variables.length < 1){ return "";}
var s = "";
for (var key in module.variables){
s += "<span class='variable_key'>"+key+"</span>=<span class='variable_value'>"+module.variables[key]+"</span> ";
}
return s;
}

View File

@@ -25,4 +25,8 @@ starting_canvas.width = window.innerWidth - 200;
starting_canvas.height = window.innerHeight - 200;
commander.query("~ "+ronin.timestamp());
commander.query("@ "+starting_canvas.render());
commander.query("@ "+starting_canvas.render());
commander.query("> 1 0,0 #000000");
commander.query("> banking=true");
commander.query("> natural=true");
commander.query("> -5,0");