ronin/scripts/core/widget.js
2016-12-19 16:29:44 -07:00

17 lines
304 B
JavaScript

function Widget()
{
this.element = null;
this.update = function()
{
var s = "";
for (var key in ronin.modules){
s += ronin.modules[key].widget();
}
s += "<span class='cursor'>"+ronin.cursor.mode.constructor.name+"</span>";
this.element.innerHTML = s;
}
}