layer bugfixing

This commit is contained in:
logsol 2014-08-30 10:29:58 +02:00
parent d29c64385d
commit 1d3ad16a07
9 changed files with 56 additions and 9 deletions

View file

@ -89,13 +89,21 @@ function (Parent, Settings, Nc, PIXI) {
};
Level.prototype.createItems = function(options) {
Nc.trigger(); // FIXME
var layerName = "items";
Nc.trigger(Nc.ns.client.view.layer.createAndAdd, layerName);
options.layer = layerName;
Parent.prototype.createItems.call(this, options);
};
Level.prototype.createTiles = function(first_argument) {
Nc.trigger(); // FIXME
Parent.prototype.createItems.call(this, options);
Level.prototype.createTiles = function(options) {
var layerName = "tiles";
Nc.trigger(Nc.ns.client.view.layer.createAndAdd, layerName);
options.layer = layerName;
Parent.prototype.createTiles.call(this, options);
};
return Level;