function Widget()
{
this.element = null;
this.update = function()
{
var s = "";
s += "
";
for (var key in ronin.modules){
s += ronin.modules[key].widget() ? ronin.modules[key].widget()+"
" : "";
}
s += "
";
s += ""+ronin.cursor.mode.widget_cursor()+"
";
this.element.innerHTML = s;
}
this.on_resize = function()
{
this.element.style.left = (window.innerWidth/2)-(ronin.surface.size.width/2);
this.element.style.top = (window.innerHeight/2)+(ronin.surface.size.height/2)+20;
this.element.style.width = ronin.surface.size.width+"px";
this.update();
}
}