ronin/scripts/modules/terminal.widget.js
Devine Lu Linvega 488440b5d8 Fixed path
2017-05-21 11:08:25 -10:00

21 lines
449 B
JavaScript

function Widget(rune)
{
Module.call(this,rune);
this.element = document.createElement("div");
this.element.setAttribute("id","widget");
this.install = function()
{
ronin.terminal.element.appendChild(this.element);
}
this.update = function()
{
var html = "";
for (var key in ronin.modules){
html += ronin.modules[key].widget() ? ronin.modules[key].widget()+" " : "";
}
this.element.innerHTML = html;
}
}