Cursor module display is back.

This commit is contained in:
Devine Lu Linvega 2016-12-19 16:29:44 -07:00
parent 8d4e5a0d4a
commit 547ea72397
3 changed files with 3 additions and 4 deletions

View File

@ -85,5 +85,4 @@ function Commander(element,element_input)
this.element_input.value = this.storage[this.storage_index]; this.element_input.value = this.storage[this.storage_index];
} }
} }

View File

@ -13,10 +13,10 @@ function Cursor()
this.set_mode = function(mode) this.set_mode = function(mode)
{ {
// if(this.mode.constructor.name == mode.constructor.name){ return; } if(this.mode == mode){ return; }
this.mode = mode; this.mode = mode;
document.body.setAttribute("class",this.mode.constructor.name); document.body.setAttribute("class",this.mode.constructor.name);
// ronin.widget.update(); ronin.widget.update();
} }
this.mouse_down = function(position) this.mouse_down = function(position)

View File

@ -10,7 +10,7 @@ function Widget()
s += ronin.modules[key].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; this.element.innerHTML = s;
} }