Implemented variables properly.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
Reference in New Issue
Block a user