finished nc merge

This commit is contained in:
logsol 2014-03-17 22:07:57 +01:00
parent f7ca9d2393
commit cacd5d74c0
8 changed files with 13 additions and 12 deletions

View file

@ -111,11 +111,11 @@ function (Parent, KeyboardInput, MouseInput, Nc) {
};
PlayerController.prototype.showInfo = function() {
Nc.trigger(Nc.ns.client.view.gameInfo.toggle, true);
Nc.trigger(Nc.ns.client.game.gameInfo.toggle, true);
};
PlayerController.prototype.hideInfo = function() {
Nc.trigger(Nc.ns.client.view.gameInfo.toggle, false);
Nc.trigger(Nc.ns.client.game.gameInfo.toggle, false);
};

View file

@ -18,7 +18,7 @@ function (Parent, Box2D, PhysicsEngine, ViewManager, PlayerController, Nc, reque
this.view = ViewManager.createView();
this.me = null;
Nc.on(Nc.ns.client.view.gameInfo.toggle, this.toggleInfo, this);
Nc.on(Nc.ns.client.game.gameInfo.toggle, this.toggleInfo, this);
Parent.call(this);
}

View file

@ -77,7 +77,7 @@ function (Parent, Settings, Nc, Exception) {
Nc.trigger(Nc.ns.client.view.mesh.add, mesh);
};
Nc.trigger("view/createAnimatedMesh", texturePaths, callback, {
Nc.trigger(Nc.ns.client.view.animatedMesh.create, texturePaths, callback, {
visible: false,
pivot: {
x: 35/2 * 4,
@ -95,7 +95,7 @@ function (Parent, Settings, Nc, Exception) {
self.headMesh = mesh;
Nc.trigger(Nc.ns.client.view.mesh.add, mesh);
}
Nc.trigger("view/createMesh", texturePath, callback, {
Nc.trigger(Nc.ns.client.view.mesh.create, texturePath, callback, {
pivot: {
x: 5,
y: 12

View file

@ -25,7 +25,7 @@ function (Parent, Settings, Nc) {
Nc.trigger(Nc.ns.client.view.mesh.add, mesh);
}
Nc.trigger("view/createMesh",
Nc.trigger(Nc.ns.client.view.mesh.create,
texturePath,
callback,
{

View file

@ -40,7 +40,7 @@ function (Parent, CoreItem, Settings, Nc) {
Nc.trigger(Nc.ns.client.view.mesh.add, mesh);
}
Nc.trigger("view/createMesh",
Nc.trigger(Nc.ns.client.view.mesh.create,
texturePath + name + ".png",
callback,
{

View file

@ -30,7 +30,7 @@ function (Parent, Settings, Nc) {
Nc.trigger(Nc.ns.client.view.mesh.add, mesh);
}
Nc.trigger("view/createMesh",
Nc.trigger(Nc.ns.client.view.mesh.create,
texturePath,
callback,
{

View file

@ -12,8 +12,8 @@ function (DomController, Settings, Exception, Nc) {
this.canvas = null;
this.debugMode = false;
Nc.on("view/createMesh", this.createMesh, this);
Nc.on("view/createAnimatedMesh", this.createAnimatedMesh, this);
Nc.on(Nc.ns.client.view.mesh.create, this.createMesh, this);
Nc.on(Nc.ns.client.view.animatedMesh.create, this.createAnimatedMesh, this);
Nc.on(Nc.ns.client.view.mesh.add, this.addMesh, this);
Nc.on(Nc.ns.client.view.mesh.remove, this.removeMesh, this);
Nc.on(Nc.ns.client.view.mesh.update, this.updateMesh, this);
@ -21,8 +21,6 @@ function (DomController, Settings, Exception, Nc) {
Nc.on(Nc.ns.client.view.fullscreen.change, this.onFullscreenChange, this);
Nc.on(Nc.ns.client.view.debugMode.toggle, this.onToggleDebugMode, this);
Nc.on("view/toggleInfo", this.onToggleInfo, this);
Nc.on(Nc.ns.client.view.playerInfo.createAndAdd, this.onCreateAndAddPlayerInfo, this);
Nc.on(Nc.ns.client.view.playerInfo.update, this.onUpdatePlayerInfo, this);
Nc.on(Nc.ns.client.view.playerInfo.remove, this.onRemovePlayerInfo, this);

View file

@ -31,6 +31,9 @@ function (Exception) {
remove: null,
update: null
},
animatedMesh: {
create: null
},
playerInfo: {
createAndAdd: null,
remove: null,