Color of gun sight change when hovering element

This commit is contained in:
Thomas FORGIONE
2015-06-22 14:39:41 +02:00
parent 0ba03cdece
commit ecee155751
4 changed files with 68 additions and 30 deletions

View File

@@ -105,6 +105,10 @@ CameraSelecter.prototype.update = function(event, y) {
}
document.getElementById('container').style.cursor = hovered ? "pointer" : "auto";
if (this.cameras.mainCamera().pointerLocked)
this.cameras.mainCamera().mousePointer.render(hovered ? MousePointer.RED : MousePointer.BLACK);
}
CameraSelecter.prototype.click = function(event) {