Cursor module display is back.
This commit is contained in:
parent
8d4e5a0d4a
commit
547ea72397
@ -85,5 +85,4 @@ function Commander(element,element_input)
|
||||
this.element_input.value = this.storage[this.storage_index];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -13,10 +13,10 @@ function Cursor()
|
||||
|
||||
this.set_mode = function(mode)
|
||||
{
|
||||
// if(this.mode.constructor.name == mode.constructor.name){ return; }
|
||||
if(this.mode == mode){ return; }
|
||||
this.mode = mode;
|
||||
document.body.setAttribute("class",this.mode.constructor.name);
|
||||
// ronin.widget.update();
|
||||
ronin.widget.update();
|
||||
}
|
||||
|
||||
this.mouse_down = function(position)
|
||||
|
@ -10,7 +10,7 @@ function Widget()
|
||||
s += ronin.modules[key].widget();
|
||||
}
|
||||
|
||||
// s += "<span class='cursor'>"+ronin.cursor.mode.widget()+"</span>";
|
||||
s += "<span class='cursor'>"+ronin.cursor.mode.constructor.name+"</span>";
|
||||
|
||||
this.element.innerHTML = s;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user